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>¡Hola Mundo!</title>
</head>
<body>
<h1>¡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]