This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 65

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: 60050
    
  65

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
 
Similar Threads
request dispatcher
action servlet
In Struts2, how to get HttpServletRequest and HttpServletReponse
ServletRequest or HttpServletRequest ?
HTTP method POST is not supported by this url