You get a request dispatcher from the request object and then call the forward or include methods on it. I just tend to short-hand things with the work dispatch (since it's a request dispatcher and I only typically use it for forwards).
--mikej -=----- mike jackson [EMAIL PROTECTED] > -----Original Message----- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 10:53 AM > To: Tomcat Users List > Subject: Re: servlets that forward to other servlets > > > > > Mike Jackson wrote: > > You can always dispatch to another servlet. You don't have to redirect. > > > > So the sequence could be something like the following: > > > > -> LoginServlet (validated) (dispatch)-> MainServlet > (dispatch)-> *.jsp > > > > It'd look like your page that the MainServlet returned was > coming directly > > from the LoginServlet, but I'd imagine that'd be ok. > > I am searching the J2EE 1.3.1 SDK API and cannot find the dispatch() > method that you describe in any of the subinterfaces or subclasses of > interface Servlet. Is that a method, or a technique? It sounds very > much like what I am trying to achieve with forward(). > > > Erik > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
