Hello, I've been doing some JSP, and I've got a: "The value for the useBean class attribute bns.TestBean is invalid" error, could you help me out?
tmp.jsp is :
<jsp:useBean id="tb" class="bns.testBean" scope="page" />
<jsp:setProperty name="tb" property="*" />
<html>
<body>
</body>
</html>
Where TestBean.java is:
package bns;
public class TestBean {
public TestBean(){
}
public String getHello(){
return "Hello World";
}
}
Which as been compiled as a .class and is stored with the file dir path:
C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\ROOT\WEB-INF\classes\bns\TestBean.class
Any help?
Cheers