tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Jackson" <mjack...@cdi-hq.com>
Subject RE: servlets that forward to other servlets
Date Thu, 23 Jan 2003 19:25:21 GMT
Oops, ment to say "word" not "work".

--mikej
-=-----
mike jackson
mjackson@cdi-hq.com

> -----Original Message-----
> From: Mike Jackson [mailto:mjackson@cdi-hq.com]
> Sent: Thursday, January 23, 2003 11:24 AM
> To: Tomcat Users List
> Subject: RE: servlets that forward to other servlets
>
>
> 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
> mjackson@cdi-hq.com
>
> > -----Original Message-----
> > From: Erik Price [mailto:eprice@ptc.com]
> > 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message