tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: Unable to compile class for JSP
Date Wed, 27 Feb 2002 16:40:15 GMT
your JSP page does not find the class in the classpath.
you must import it in the beginning of the page.
do something like this : 
<%@ page import="fwLine" %>

I think that should work ...

hope it helps
-reynir@hugsmidjan.is



> -----Original Message-----
> From: Andrew Rodwell [mailto:arodwell@kdpsoftware.co.uk]
> Sent: 27. febrúar 2002 16:31
> To: Tomcat Users List
> Subject: Unable to compile class for JSP
> 
> 
> Hi,
> 
> I am trying to use a bean in my jsp.
> 
> <jsp:useBean id='lineB' scope='page' class='fwLine' type="fwLine"  />
> 
> when it is run I get the following.
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 9 in the jsp file: /fwView.jsp
> 
> Generated servlet error:
> C:\tomcat\work\localhost\_\fwView$jsp.java:61: Class 
> org.apache.jsp.fwLine
> not found.
>                 fwLine lineB = null;
>                 ^
> 
> 
> An error occurred at line: 9 in the jsp file: /fwView.jsp
> 
> Generated servlet error:
> C:\tomcat\work\localhost\_\fwView$jsp.java:64: Class 
> org.apache.jsp.fwLine
> not found.
>                     lineB= (fwLine)
>                             ^
> 
> 
> An error occurred at line: 9 in the jsp file: /fwView.jsp
> 
> Generated servlet error:
> C:\tomcat\work\localhost\_\fwView$jsp.java:69: Class 
> org.apache.jsp.fwLine
> not found.
>                             lineB = (fwLine)
> java.beans.Beans.instantiate(this.getClass().getClassLoader(),
>  "fwLine");
> 
> it seems to expect my bean to be in org.apache.jsp. 
> 
> have I missed something on the setup, like in web.xml
> 
> Thank you for any help.
> 
> Andrew
> 
>                                      
> 

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