This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 61447
    
  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