----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I am new to this list, and I have read the FAQ's. Please bear with me.
I try to use javabean in JSP file. I have apache 1.3.12, Jserv 1.1,
JDK1.1, JSDK 2.0 and GNUjsp 1.0, running on solaris.
I have created a directory to hold my bean classes: /home/.../java/beans
and put this directory in jserv.properties and my jsp zone property file:
In jserv.properties:
wrapper.path=/home/.../java/beans
In zone.properties:
repository=/home/.../java/beans
servlet.gnujsp.initArgs=bla bla bla -classpath
bla:bla:bla:/home/.../java/beans bla bla bla
And when I run the following code:
...
<jsp:useBean id="test" class="hall.SimpleBean" />
<jsp:setProperty name="test" property="message" value="Hello WWW"/>
...
I got the following errors:
M023: file:/home/g1umil/httpd/apache_1.3.12/htdocs/jsp/BeanTest.jsp
builtin-javac -classpath
/home/g1umil/httpd/ApacheJServ-1.1/libexec/ApacheJServ.jar:/home/g1umil/httpd/JSDK2.0/lib/jsdk.jar:/apps/pdo_5.0/Library/JDK/lib/classes.zip:/home/g1umil/httpd/jConnect-4_2/classes:/home/g1umil/java/beans:/apps/pdo_5.0/Library/JDK/bin/../classes:/apps/pdo_5.0/Library/JDK/bin/../lib/classes.jar:/apps/pdo_5.0/Library/JDK/bin/../lib/rt.jar:/apps/pdo_5.0/Library/JDK/bin/../lib/i18n.jar:/apps/pdo_5.0/Library/JDK/bin/../lib/classes.zip:/home/g1umil/httpd/gnujsp-1.0.0/lib/servlet-2.0-plus.jar:/home/g1umil/httpd/gnujsp-1.0.0/lib/gnujsp10.jar:/home/g1umil/java/beans
-d /home/g1umil/httpd/apache_1.3.12/htdocs/generated_jsp -deprecation
/home/g1umil/httpd/apache_1.3.12/htdocs/generated_jsp/jsp__jsp__BeanTest_2ejsp.java
/jsp/BeanTest.jsp:5: Class hall.SimpleBean not found in type declaration.
hall.SimpleBean test = (hall.SimpleBean)
^
/jsp/BeanTest.jsp:5: Class hall.SimpleBean not found in type declaration.
hall.SimpleBean test = (hall.SimpleBean)
^
/jsp/BeanTest.jsp:5: Class hall.SimpleBean not found in type declaration.
test = new hall.SimpleBean ();
^
3 errors
Could anyone tell me what is wrong?
Thanks.
Mei
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]