adspace


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between filters and interceptors ?

1311


What do you know about validation plugin ?

1028


What are the contents on web.xml in struts application ?

1068


How is declarative handling of exceptions done in struts ?

1006


What is action chaining ?

1164