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