Websphere uses JDK1.1.6 and supports JSP .91. Both setAttribute() and
callPage() are done differently in JDK2.0.

Bob Foster
Symantec Internet Tools  http://www.visualcafe.com/


______________________________ Reply Separator _________________________________
Subject: Basic JSP Question
Author:  Jarrett Jimmy <[EMAIL PROTECTED]> at Internet
Date:    3/10/99 3:08 PM


I just started using JSP.  So far, I am having no luck.  I've read the spec and
have
successfully ran the demos provided.

Machine Specs:
Windows NT
JDK1.2 (or JDK2.0)
JSDK2.0
JSP.92

I'm trying to run a Servlet that accesses a .jsp file on my local machine.  At
this URL
http://www.software.ibm.com/webservers/appserv/doc/guide/asgdwp.html#HDRJSPAPI
it contains this snipet of code:

// To send the Bean to a JSP file for content formatting and display
// 1) Set the Bean as an attribute in the current request object
((com.sun.server.http.HttpServiceRequest) req).setAttribute("dataBean",
dataBean);

// 2) Use callPage to invoke the JSP file and pass the current request object
((com.sun.server.http.HttpServiceResponse) res).callPage("/DisplayData.jsp",
req);

Now, this seems extremely straightforward.  However, when I try to compile this
code, I keep
getting an error (class def not found error).  The class that can't be found is
the
com.sun.server.http.HttpServiceResponse.  Do I need a different version of the
JSP or the
JSDK?  Or, is this a class file that's provided by Servers?

I'm only using the servletrunner that comes with the JSDK2.0 to test my
Servlets.

Any and all help will be extremely appreciated.

Thanx,
Jimmy

===========================================================================
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".

===========================================================================
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