Chris Ernenwein wrote:
>
> sessions work but not session = request.getSession(true);
>
> We got a new value each time it was called, if you look at the sessionID.
>
> We used session scope beans to hold data.
Have you tried:
<%
  HttpSession sess = request.getSession(); e.i. not
request.getSession(true)
  session.putValue("Test", "Test Value");
%>

from the JSP docs:
(javax.servlet.jsp
Class PageContext
java.lang.Object
  |
  +--javax.servlet.jsp.PageContext

)
getSession
public abstract HttpSession getSession()
Returns:
the HttpSession for this PageContext or null

As I understood from the docs, JSP always creates a session object.

Hope this helps

Sven


--
======================================================================================
Sven van 't Veer                                              http://www.cachoeiro.net
Java Developer                                                      [EMAIL PROTECTED]
                                        _/_
The answer                             /   \
    to the ultimate question        nnn|.
.|nnn                                     42
=========================================U============================================

===========================================================================
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