-
struts 2.0 get HttpServletRequest (1 messages)
- Posted by: Thomas Hassler
- Posted on: March 05 2007 09:16 EST
Hi all I am using struts 2.0, I have an action class which implments inteface "ServletRequestAware" and include the setter "setServletRequest", however, I can't access the HttpServletRequest, and returns null value of HttpServletRequest object. Anybody can tell me how can I do it.Threaded Messages (1)
- Try this by Renan Oliveira on April 04 2007 11:50 EDT
-
Try this[ Go to top ]
- Posted by: Renan Oliveira
- Posted on: April 04 2007 11:50 EDT
- in response to Thomas Hassler
Try this. HttpServletRequest request = ServletActionContext.getRequest();