tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dderry" <dde...@acm.org>
Subject Re: Jasper error
Date Tue, 22 Jan 2002 11:55:37 GMT
Debby,

You need to import org.apache.jsp.UserData to use it in that manner. (<%@
page import="org.apache.jsp.UserData" %>).

the useBean declaration creates a scripting variable named user, and does
not require the import. But at line 3 (UserData user = null;) you are
declaring a different variable (which will mask the variable created by
useBean). If you really intend to set the bean to null then just do an
assignment rather than a declaration (user = null;).

Dave Derry


----- Original Message -----
From: "Debby Dart" <ddart@doradosoftware.com>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Monday, January 21, 2002 8:08 PM
Subject: Jasper error


> ...
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 3 in the jsp file: /SaveName.jsp
>
> Generated servlet error:
> C:\java-apps\Apache Tomcat
4.0\work\localhost\testapp\SaveName$jsp.java:65:
> Class org.apache.jsp.UserData not found.
>                 UserData user = null;
> ...
>
> Line 3 in the script is :
> <jsp:useBean id="user" class="UserData" scope="session"/>
>
> I thought all I needed to do was to place the file UserData.class into the
> webapps\testapp\Web-inf\classes directory, but apparently I'm missing
> something.
>
>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message