Hello,
I am trying some sample applications that came with Sams Teach Yourself
JSP.
When I run one of these I get the following error:
org.apache.jasper.JasperException: /ch07/ch07_09.jsp(9,8) The value for the useBean class attribute beans.ch07_07 is invalid. The jsp file that I have is pasted below. Is there something wrong with the path. Because the javabean was compiled correctly and I have saved the file under the folder of
Tomcat - webapps\Sams-TY-JSP\ch07\WEB-INF\classes\beans
while the jsp page is in webapps\Sams-TY-JSP\ch07
I ran a few other examples and they ran ok. But with this one I am having problems.
Can someone please advise what is wrong here.
Thanks
Ricky
<HTML>
<HEAD>
<TITLE>Using Beans and Session Scope</TITLE>
</HEAD>
<BODY>
<H1>Using Beans and Session Scope</H1>
<jsp:useBean id="bean1" class="beans.ch07_07" scope="session" />
<%
bean1.setCounter(bean1.getCounter() + 1);
%>
The counter value is: <jsp:getProperty name="bean1" property="counter" />
</BODY>
</HTML>