• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't use session any longer ?

 
Gaelle SMITS
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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="text/html"%>
<%@ page session="true"%>
<%
String name = request.getParameter( "nom" );
session.setAttribute( "theName", name );
%>
<HTML>
<HEAD>
<TITLE>Petit message</TITLE>
</HEAD>
<BODY>
<a href="TestSession.jsp">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.
 
Tero Ahonen
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is not in code. Because the code
works fine in tomcat 4.0.3 So the problem is in WS configuration. I'm not very familiar with WS but I think there is some configuration setting that defines can session be used or no.
I think that this post didn't help you much but if you find the problem I would like to know what it was.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!