Hi:
I created a session in a servlet, which involks a jsp as following:
HttpSession session = request.getSession(true);
String teacher = new String("true");
session.setAttribute("teacherTrace",teacher);
response.sendRedirect(response.encodeURL("/path/to/that.jsp"));
In that.jsp file, I tried to extract this session value:
String sessionValue = (String)session.getAttribute("teacherTrace");
However, sessionValue is null. I have set
<%@ session = true %>
I'm running Tomcat3.1 on Unix.
Could anyone tell me how to communicate session between servlet and JSP?
Thanks a lot in advance.
Peter
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
___________________________________________________________________________
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