Hi, I have a HttpServlet controller that intercepts requests and maps those requests to Action objects. These Action objects are not HttpServlets; however, there is a need to retrieve the request sent by the HttpServlet controller, create a session and pass the request back to the controller for forwarding. The sessions are being created successfully in the Action objects, it just can't pass the session along to the HttpServlet controller. Is is possible to pass HttpSession objects from a non-servlet to a servlet via the request object? Any thoughts?
posted 14 years ago
You can have the javax.servlet.http.HttpServletRequest request as argument of your action methods.(or in the constructor) Then when you call the action method, you still have a request object you can work with and you can send back to a servlet later.
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community