-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Hello,
I hope I'm using the right forum to ask this question. I installed
Apache, JServ and GNU JSP on an NT Workstation box and both the servlets
and JSP seem to be working just fine. However as soon as I try to do
something like:
<%= TestBean.getName() %>
(where TestBean is my own class that implements the getName() static
method) in my JSP page I get the following error:
>>>builtin-javac -classpath C:\Program Files\Apache Group\Apache
>JServ\ApacheJServ.jar;c:\jsdk2.0\lib\jsdk.jar;c:\jdk1.1.8\bin\..\classes;c:\jdk1.1.8\bin\..\lib\classes.zip;c:\jdk1.1.8\bin\..\lib\classes.jar;c:\jdk1.1.8\bin\..\lib\rt.jar;c:\jdk1.1.8\bin\..\lib\i18n.jar;C:\TEMP
> -d C:\TEMP -deprecation
>C:\TEMP\_jsp\_C_3a\_Program_20Files\_Apache_20Group\_Apache\_htdocs\_test_2ejsp.java
C:\TEMP\_jsp\_C_3a\_Program_20Files\_Apache_20Group\_Apache\_htdocs\_test_2ejsp.java:21:
Undefined variable or class name: TestBean
out.print(__valueOf( TestBean.getName() ));
<<<
I made sure that both my machine class path and the zone.properties file
point to the location of the TestBean.class file. Still no success. I
tried making the above call from within a regular servlet and that
worked just fine. I also tried creating a simple jsp that didn't
reference any of my own classes but contained the following code:
<%= request.getRemoteAddr() %>
That also worked fine.
This is my first time working with Apache/JServ and I'm not intimately
familiar with all the configuration parameters yet and this looks like a
configuration problem. Any help would be greatly appreciated.
Thanks,
Chris
food.com
p.s. Just to be on the safe side, I also included the following line at
the top of my jsp file:
<USEBEAN NAME="tb" TYPE="TestBean" LIFESPAN="page"></USEBEAN>
Still nothing.
--
--------------------------------------------------------------
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]