Ok, the craftsman is blaming his tools, I've spent quite a few hours
today trying to parameterize an applet with JSP and have given up
because I get inconsistent results. I've had it working then I removed a
space or something innocuous and it stopped working etc.

The code below works without the applet but does not work with the
applet (not the substitition on parameter).

Here's the crappy output with the applet

Welcome validated user;

<applet code="com.nymet.AcquireContacts.c

I'll be very happy to admit a failure if someone can point it out. Does
anybody else find webspere JSP flaky?

<%@ 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);

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

if (sValidated != null && sValidated.intValue() != -1)
{
%>




<p>Welcome validated user;</p>
<applet code="com.nymph.dali.applet.AcquireContacts.class"
codebase="class" width="753" height="150">
<param name="p1" value="<%= sValidated.intValue() %>">
</applet>

<p>&nbsp;</p>

<%
}
}
%>
</body>
</html>




Reply via email to