beans
Hello,
I have jsp page:
<BODY>
<H1>Thanks for Registering</H1>
<jsp:useBean id="nameBean" type="NameBean"
scope="session" />
<H2>First Name:
<jsp:getProperty name="nameBean" property="firstName" /></H2>
<H2>Last Name:
<jsp:getProperty name="nameBean" property="lastName" /></H2>
</BODY></HTML>
and a NameBean class in WEB-INF/classes folder, but when i try to run this jsp page on my local host it cant find the NameBean class.Why?
Thanks
[591 byte] By [
Lanexx] at [2007-9-30 23:28:54]

Something like:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 9 in the jsp file: /RandomNum.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\RandomNum_jsp.java:49: cannot resolve symbol
symbol : class NumberBean
location: class org.apache.jsp.RandomNum_jsp
NumberBean randomNum = null;
^
> org.apache.jasper.JasperException: Unable to compile
> class for JSP
>
> An error occurred at line: 9 in the jsp file:
> /RandomNum.jsp
>
> Generated servlet error:
>[javac] Compiling 1 source file
>
> C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\R
> andomNum_jsp.java:49: cannot resolve symbol
> symbol : class NumberBean
> location: class org.apache.jsp.RandomNum_jsp
>NumberBean randomNum = null;
>^
? This is clearly to do with NumberBean, not NameBean. Are you aware that JSPs are compiled into servlets at runtime? This is a compile error, it can't find that class... read the errors