Thanks for the input so far. I got a  version working  :-) (below),
saved a copy and then tried to backtrack to find out where I'd gone
wrong previously, changed some things, it failed to compile again, so
decide to go back to my saved working copy, which now fails to compile
:-( ! This is what I mean by flaky. I used the admin tool to remove the
pageCompile servlet in case it was caching an old version or something
but had no effect. Error output at bottom of post.


// this did work

<%@ import = "com.sun.server.http.HttpServiceResponse" %>

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>
<body bgcolor="#FFFFFF">
<%
HttpSession session = request.getSession(false);
Integer sValidated = null ;

if (session != null)
{
 sValidated = (Integer) session.getValue ("session.validated");
}
%>

<% if (sValidated != null && sValidated.intValue() != -1)
{
%>
<applet code="com.nymph.dali.applet.AcquireContacts.class"
codebase="class" width="753" height="150">
<param name="p1" value="<%= sValidated.intValue() %>">
</applet>
<%
}
%>

</body>
</html>

There's something I don't understand in the following error output. My
problem is I'm running url http://www.utouch.com/dali/Pharvest.jsp, so
why do I get servlet/SessionSample/dali/Pharvest.jsp in the error
output, that is not
the requested URL.

500 Internal Server Error

The servlet named pageCompile at the requested URL

     http://www.utouch.com/servlet/SessionSample/dali/Pharvest.jsp

reported this exception pagecompile._dali._Pharvest_xjsp: null. Please
report this to the administrator of the web server.

     pagecompile._dali._Pharvest_xjsp: null
java.lang.ArrayIndexOutOfBoundsException at
     java.io.CharArrayWriter.write(CharArrayWriter.java:93) at
java.io.PrintWriter.write(PrintWriter.java:193) at

com.sun.server.http.pagecompile.filecache.CharFileCacheEntry.writeChars(CharFileCacheEntry.java:90)
at
     pagecompile._dali._Pharvest_xjsp.service(_Pharvest_xjsp.java:79) at

     javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at
     com.sun.server.http.pagecompile.JSPState.service(JSPState.java:72)
at

com.sun.server.http.pagecompile.PageCompileServlet.doService(PageCompileServlet.java:943)
at
     co

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to