How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
Answer / Naresh Kumar
In Struts2, you can obtain Servlet API objects through Action Support Superclass, by using the getServletRequest(), getServletResponse(), and getHttpSession() methods.
| Is This Answer Correct ? | 0 Yes | 0 No |
Are interceptors thread safe?
what r the disadvantages of MVC-2 Architecture?
What is the purpose of @requiredstringvalidator?
What is struts and why it is used?
What is validate() and reset() functions?
What is the purpose of @after annotation?
What configurations are stored in struts configuration file ?
What are the features of struts 2?
How can we display all validation errors to user on jsp page?
What are the conditions for actionform to work correctly?
How you will make available any message resources definitions file to the struts framework environment?
how to create a search field in struts.with code