On Wed, 2002-01-30 at 13:52, Geoffrey Talvola wrote:

> > Best way for me was subclassing an abstract class, but i even
> > don't know
> > how to call another servlet.
>
> You can call another servlet using
>
>       self.application().forward(self.transaction(), 'NameOfServlet')
>
> or if you're using a recent snapshot from CVS, you can just write:
>
>       self.forward('NameOfServlet')

If on the other hand you'd like the user's browser to jump from
the current servlet to a different one (i.e. you want to process
the results of a form and go to either X or Y depending on the 
result, you can send an HTTP redirect:

        self.response().sendRedirect("ServletX")

Although IIRC redirects are supposed to be fully qualified (absolute)
URIs (you could write yourself a wrapper function to qualify 
relative addresses).

Hope this helps,
Jason


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to