Hi there,

I'm developing a servlet that dishes out html pages ~50k in size from a SQL server 
backend db.

An authentication page first appears to elicit user data, using the GET method. A 
session object is set at this point in time.

The user will select data on the form and POST the data.

class servletAuthenticate {
doGet(...)
{
 HttpSession session = req.getSession(true);
 ...
 session.putValue("logon.isDone", name);
}
}

class servletResource {
doPOST(...)
{
 HttpSession session = req.getSession(true);
 ServletOutputStream out = res.getOutputStream();
 ...
 Object = (String) session.getValue("login.done"); ...
}
}
The session object set by the doGet() in the 1st servlet is 'lost'. Is there any 
mistake here? or is it a no-no in using session objects across GET/POST methods?

Thanks.

___________________________________________________________________________
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