Rajesh Shah wrote:

> This is a fundamental problem escpecially if you are using the Model 2
> architecture and the servlet is being used as the controller. Has anyone got
> any workarounds?

Tomcat does support sessions being shared across servlets and JSP pages in the same
web application.  Do the session examples that come with Tomcat work correctly for
you?  If not, you don't have it installed correctly.  If they do, there is some
other logic issue in your pages/servlets that will require code snippets to debug.

Note that URL rewriting support was not present in Tomcat 3.0 -- you had to use
cookies.  It is present in the most recent releases of 3.1 beta, and will be in the
3.1 final release, so that it works fine either with or without cookies.

Craig McClanahan


>
> -----Original Message-----
> From: Javier Borrajo [mailto:[EMAIL PROTECTED]]
> Sent: 10 April 2000 16:05
> To: Rajesh Shah
> Cc: [EMAIL PROTECTED]
> Subject: Re: Session using Tomcat
>
> Hi, some people in my company evaluated TomCat and had
> this problem, so they recommend Resin now.
> See www.caucho.com
>
> Regards
>
>     Javier Borrajo
>     www.tid.es
>
> Rajesh Shah wrote:
>
> > I ahve been using ServletExec for the last three months and have not
> > encountered any problems. I am currently researching Tomcat and having
> > difficulties with sessions.
> >
> > I have a JSP which is a simple registration page. The form element in the
> > JSP submits to a Servlet which is turn gets the session object from the
> > request and retreives a bean from the session. Even thought I set the
> scope
> > of the bean to the session, I cannot retrieve the current session. When I
> do
> > request.getSession(false) I get a null object, and if I say
> > getSession(true), then I get a new session.
> >
> > has nybody else had problems with this? I am using WinNT, Tomcat 3.1
> >
> > Raj.
> >
> > PS. By browser is set to accept cookies!
> >
> >
> ===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to