Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CAn't use session any longer ...?

Status
Not open for further replies.

Gaelle

Programmer
Jun 20, 2001
62
0
0
FR
Hi everyone !

I had an application working under Websphere 3.5.4 and JDK 1.2.2.
This application used many session variables.
I have stopped working on it, and now that I want to use again, I get this stupid usual :

Unhandled error! You might want to consider having an error page to report such errors more gracefully
com.sun.jsp.JspException: Compilation failed
at javax.servlet.ServletException.(ServletException.java:49)
at com.sun.jsp.JspException.(JspException.java:29)
...

I try with a very very simple file :
<%@ page contentType=&quot;text/html&quot;%>
<%@ page session=&quot;true&quot;%>
<%
String name = request.getParameter( &quot;nom&quot; );
session.setAttribute( &quot;theName&quot;, name );
%>
<HTML>
<HEAD>
<TITLE>Petit message</TITLE>
</HEAD>

<BODY>
<a href=&quot;TestSession.jsp&quot;>Lien</a>
</BODY>
</HTML>

The compilation always fails on the line with access to the session.
I have tried other access to the session object, but it semms that I cannot reach it any longer !

Can anyone help me, please ?
I really don't catch what the problem is !

Gaelle, from France.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top