Howdy,
UserBean needs to be in a package.  See 
http://tomcatfaq.sourceforge.net/classnotfound.html

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: David Reche Martinez [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 28, 2003 12:12 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat/Java compiler error
>
>Hi all,
>
>I have tomcat-4.1.24 and I'm trying to test a very simple jsp that use a
>JavaBean:
>
>** -- HolaMundo.jsp
><%@ page language="java"  %>
><%@ page import="UserBean" %>
>
><jsp:useBean id="usr" scope="page" class="UserBean">
>  <jsp:setProperty name="usr" property="login"    value="pepe" />
>  <jsp:setProperty name="usr" property="password" value="epep" />
></jsp:useBean>
>
>  <head>
>    <title>&iexcl;Hola Mundo!</title>
>  </head>
>  <body>
>    <h1>&iexcl;Hola <jsp:getProperty name="usr" property="login" />!</h1>
>  </body>
></html>
>
>I follow the directory hierarchy that is explained in the helps docs
>(WEB-INF/classes) but when I try to execute the jsp through the navigator I
>have this error:
>
>org.apache.jasper.JasperException: No se puede compilar la clase para JSP
>
>An error occurred at line: -1 in the jsp file: null
>
>Generated servlet error:
>    [javac] Since fork is true, ignoring compiler setting.
>    [javac] Compiling 1 source file
>    [javac] Since fork is true, ignoring compiler setting.
>    [javac]
>/usr/local/tomcat-
>4.1.24/work/Standalone/localhost/prueba/prueba1_jsp.java:8
>: '.' expected
>    [javac] import UserBean;
>    [javac]                   ^
>    [javac] 1 error
>
>Can anybody help me?
>
>Thank you
>
>David Reche Mart�nez
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to