File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 61766
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP and ActionServlet