• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Can't use session any longer ?

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic