wood burning stoves 2.0*
The moose likes Struts and the fly likes JSP and ActionServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSP and ActionServlet" Watch "JSP and ActionServlet" New topic
Author

JSP and ActionServlet

matt love
Ranch Hand

Joined: Jan 25, 2010
Posts: 67

I'm trying to figure out the handoffs in a Struts 1.2 environment.

When a JSP form is submitted by a user and the ActionServlet is eventually invoked, receiving a HttpServletRequest and a HttpServletResponse, is the Request object being passed to the ActionServlet the embodiment of the JSP?

Thanks.

Matt

public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {

process(request, response);

}

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

matt love wrote: is the Request object being passed to the ActionServlet the embodiment of the JSP?

No (whatever "embodiment" means). It's simply the request generated from the form. The fact that the form is in an HTML page that was generated from a JSP is completely moot.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSP and ActionServlet