Massimiliano Bariola wrote:
>
> I'm programming a servlet using HttpSessions; the API docs for HttpServletRequests 
>show a getSession() method (with no parameters); but the
> compiler complains saying it is nonexistent. has it been removed or what? And if so, 
>how do I implement the "if a session exists, keep it;
> otherwise create one" behavior?

It sounds as though you may be compiling against the 2.0 version of the JDK.
That version did not have the getSession() method, only getSession(boolean). In
any case, if what you want is to "create if null," then you want to use the
getSession(boolean).

K Mukhar

___________________________________________________________________________
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