I'm using the following:

Tomcat 3.2.1 w/out Apache
JDK1.3
WinNT4.0

I'm a new user of Tomcat and I would like a little help in getting my simple
example working.

Here is my problem. I have a simple .jsp that is trying to get a value from
a getter of a java bean. I have all this code in the examples.war under
TOMCAT_HOME\webapps. I have my test.jsp located under
TOMCAT_HOME\webapps\examples\jsp\test. My Test.java/class is located under
TOMCAT_HOME\webapps\examples\WEB-INF\classes.   NOTE: right now, I'm just
trying to get my bean class loaded, before I attempt my getter.

Here is my url: http://localhost:8080/examples/jsp/test/test.jsp   after
running this, I get this output:

org.apache.jasper.JasperException: Unable to compile class for
JSPC:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:63:
Class jsp.test.Test not found.
Test happy = null;
^
C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:66:
Class jsp.test.Test not found.
happy= (Test)
^
C:\OpenSource\jakarta-tomcat-3.2.1\work\localhost_8080%2Fexamples\_0002fjsp_0002ftest_0002ftest_0002ejsptest_jsp_0.java:71:
Class jsp.test.Test not found.
happy = (Test) Beans.instantiate(this.getClass().getClassLoader(), "Test");

*****************************
Test.jsp:
<!-- A JSP to test -->

<jsp:useBean id="happy" scope="page" class="Test" />

<html>
<head>
<title>Test Bean</title>
</head>

<B>The result is: </B>

</html>

Test.java
public class Test {

private final String happy = "happy";

public String getHappy() {
return this.happy;
}
}


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

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

Reply via email to