All that's really necessary is to call res.encodeUrl("/servlet/ServletName")
when you link to it from another page. Then from within the doPost or doGet
of ServletName, you have the following:

      HttpSession session = req.getSession(true);
      if (session.isNew()) {
         res.sendRedirect("/index.html");
      }
      else {  // Call your functions here.
        }
> -----Original Message-----
> From: jon * [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 21, 1999 2:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: maintain session in an app with several servlets.
>
>
> > Hello all,
> > Does anyone have an example of running an application with multiple
> > servlets.  So far everything I have seen has just one
> servlet.  I am trying
> > to solve a design issue where I would like to create a
> session and have the
> > servlets in the application use that session.
> > If you can point me to examples I would appreciate it.
> > Joseph.
>
> You should take a look at the Dash framework:
>
> <http://www.working-dogs.com/dash/>
>
> -jon
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to