Discussions

Web tier: servlets, JSP, Web frameworks: struts 2.0 get HttpServletRequest

  1. struts 2.0 get HttpServletRequest (1 messages)

    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)

  2. Try this[ Go to top ]

    Try this. HttpServletRequest request = ServletActionContext.getRequest();