I have a strange situation on iPlanet 6.5as /iPlanet Webserver
(windows 2000 prof).

1. In a servlet, I have
     session = req.getSession(true);
     //add something to the session
     session.setAttribute("string1", new String("string type"));
     session.setAttribute("object1", new Object());
Log.debug("In loginServlet, session="+session.getId());

2. In a Jsp page, I have
     Log.debug("In JSP, session="+session.getId());
     while (it.hasMoreElements()) {
        String name=(String)it.nextElement();
Log.debug("In JSP, name="+name+", value="+session.getAttribute(name));
     }

The servlet is called first and then sendRedirect to the jsp page.
The result is, in jsp, it got the same session (id is the same).
and get "string type" for string1 (correct), but object1 is null(not
correct).

(NOTE: the same code is tested on tomcat and other half dozen containers,
all worked fine, I mean, object1 is not null).

Has anyone had a similar experience?
Thanks.


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.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

Reply via email to