JSP to Servlet Loosing Session Info

2001-05-25 Thread Frank Lawlor

I noticed some posts about people having problems loosing the session
information when using JSPs with servlets.  For examples if I did the 
following in a JSP:

  

when MyServlet got control, the Session was empty.

I found out that if I did this the "right way" and defined the servlet in
my web.xml, e.g.,

  
 theServlet
 com.mycom.MyServlet
   
   
  theServlet
  someServlet
   

and in the JSP said:

  

then all worked fine.

You may have to adjust the path a bit depending upon where your
JSP is, etc.  The Tomcat mapping trace can help you debug
mapping problems.

Apparently there is some encoding function which can be applied
to make the FORM reference work, but I don't know what it is
(anyone know?).

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.






JSP to Servlet Loosing Session Info

2001-05-23 Thread Frank Lawlor

I noticed some posts about people having problems loosing the session
information when using JSPs with servlets.  For examples if I did the 
following in a JSP:

  

when MyServlet got control, the Session was empty.

I found out that if I did this the "right way" and defined the servlet in
my web.xml, e.g.,

  
 theServlet
 com.mycom.MyServlet
   
   
  theServlet
  someServlet
   

and in the JSP said:

  

then all worked fine.

You may have to adjust the path a bit depending upon where your
JSP is, etc.  The Tomcat mapping trace can help you debug
mapping problems.

This seems like it is a Tomcat bug, but the above is not only a
workaround, but a more maintainable way of doing things.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.