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.
- Posted by: Allan Wan
- Posted on: March 05 2007 09:16 EST
Try this. HttpServletRequest request = ServletActionContext.getRequest();