-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for HTTP forward #32
Comments
Comment by mvcbot Comment by Santiago Pericas-Geertsen: Ozark implements redirect using the "redirect:" prefix. For example, return "redirect:/foo"; which seems very convenient for controller methods returning strings. |
Comment by mvcbot Comment by peter_pilgrim: Ok. How do you get to the request.getContextPath() of your application then?
} The "redirect:/products.jsp" will alter the URI and still include the Application Path URI e.g.
This is probably not what the developer/designer wants. Instead they want
Assuming the "/acme" is the servlet context path ? |
Comment by mvcbot Comment by Santiago Pericas-Geertsen: The relative path resolution is currently documented to be compatible with javax.ws.rs.core.Response#seeOther, which is also available to MVC controllers that return a Response. |
Comment by mvcbot Comment by Manfred Riem: I think what he is saying what if you want to break out of the servlet path, but instead want to target the context path? |
Comment by chkal I don't think it is worth to include this in 1.0. Any objections? |
Issue by mvcbot
Tuesday Jan 13, 2015 at 18:01 GMT
Originally opened as mvc-spec/mvc-spec#35
Original issue MVC_SPEC-23 created by Santiago Pericas-Geertsen:
JAX-RS 2.1 is likely to support a redirect call (just like servlet). This issue is recorded to track if whatever support is added to JAX-RS is sufficient for MVC.
The text was updated successfully, but these errors were encountered: