I get a perculiar error, when executing a jsp-page on Tomcat3.1.
I can't create a session if I try to name it session like this:

<%
HttpSession session = request.getSession();
System.out.println("Session Id: " + session.getId();)
%>

When I access my page from Tomcat, freshly restarted and emptied on all
caches, I get the message:
_______
org.apache.jasper.JasperException: Unable to compile class for
JSPwork/localhost_8080%2FCIA/_0002findex_0002ejspindex_jsp_138.java:90:
Variable 'session' is already defined in this method.
                 HttpSession session = request.getSession();
                             ^
1 error
_______

I'm certain that I haven't created a session before!
Where does this come from?
If I remove "my" session, I do get a Id, from the ghost-session, so
obviously it exists...

Can anyone shed some light over this?
/G

O--
************************
Gael Stehagen
[EMAIL PROTECTED]
0708-882910

___________________________________________________________________________
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