HttpServletRequest « Web « Spring Q&A





1. Spring: accessing HttpServletRequest in a custom ViewResolver    stackoverflow.com

I would like to access an HttpServletRequest object of the originating request in a custom InternalResourceViewResolver based resolver. Is there any simple way to do this? I am using Spring 2.5 ...

2. Need the HttpServletRequest in the delete method    forum.springsource.org

Need the HttpServletRequest in the delete method Hi, I want to overwrite (or push-in) the delete method of the generated controller. In this pushed-in method, I need to access the HttpServletRequest. ...

3. How to acces HttpServletRequest from a Spring Validator clas    forum.springsource.org

Hello, I'm new with spring and I currently learning the Validator part. I want in MyTestClass that implement Validator to access the HttpServletRequest.I also want to acces the Locale for some ...

4. springBind not locating command instance in HttpServletRequest.    forum.springsource.org

springBind not locating command instance in HttpServletRequest. I'm having an issue with calling the springBind macro from Velocity. Specifically the RequestContext.getBindStatus call is failing because it can't locate the command object. ...

5. ViewResolvers and HttpServletRequest?    forum.springsource.org

ViewResolvers and HttpServletRequest? I'm having some difficulty in understanding how the ViewResolver implementations are supposed to work. What I'd like to do is make a request to my application, the controller ...

6. How to add error to HttpServletRequest?    forum.springsource.org

Hi there I'm new to SpringMVC and stuck with this matter... I'm able to add an error message to the HttpServletRequest, How do I do it in SpringMVC? Struts Code... Code: ...

7. Current HttpServletRequest as a dependency (to inject).    forum.springsource.org

Current HttpServletRequest as a dependency (to inject). I want to make a current HttpServletRequest to be a bean in request scope in servlet environment to inject it as a dependency to ...

8. FieldChecks needs HttpServletRequest    forum.springsource.org

FieldChecks needs HttpServletRequest I have a need to create my own FieldChecks object, but it needs to have an HttpServletRequest object. Right now what it gets is a null object. or... ...

9. Corrupted encoding for GET parameters obtained via HttpServletRequest.getParameter()    forum.springsource.org

Corrupted encoding for GET parameters obtained via HttpServletRequest.getParameter() In a Spring MVC controller I want to process a GET parameter. I assumed, that the HttpServletRequest's method getParameter() would return the correctly ...





10. Change HttpServletRequest values in interceptor?    forum.springsource.org

is there any way we can change values in HttpServletRequest.getParameter using interceptor i know we can do that with filters using HttpServletRequestWrapper i am trying to clean all XSS(cross site scripting) ...

11. Occasional problem with HttpServletRequest.getParameter    forum.springsource.org

Occasional problem with HttpServletRequest.getParameter I have a Controller which extends AbstractController, this serves graphs to the client, using an img tag with a src such as : Code: http://localhost:8080/edrapps/graph.do?uid=1193327690547&charttype=crl The img ...

12. how to inject the httpservletrequest    forum.springsource.org

How would I go about injecting the current httpservletrequest (or specifically, the value of request.getRemoteUser(), which changes on a session basis ), into a bean? (I may be going about this ...

14. How to get Principal from HttpServletRequest    forum.springsource.org

How to get Principal from HttpServletRequest I am working on a SecurityFilter which sets the SecurityContextHolder auth object with the values from the request as we have already authenticated with Tomcat. ...

15. Accessing HttpServletRequest in a custom ViewResolver    forum.springsource.org

Hi. I would like to access an HttpServletRequest object of the originating request in a custom ViewResolver. Is there any simple way to do this? I've been studying documentation, but could ...

16. Empty HttpServletRequest parameterMap    forum.springsource.org

Empty HttpServletRequest parameterMap I'm building a RESTful service using Spring 3.0 MVC with annotated controllers. I have an interceptor that needs to get query string parameters from the HttpServletRequest object. Here's ...





17. HttpServletRequest injection    forum.springsource.org

HttpServletRequest injection Hi, reading documentation I found is possible to Autowire a request in an object with @Autowired, but I need to define a bean in xml cause I don't want ...