package test;
public class helloWorld {
public String name = "My first bean";
public String getHi()
{
return "Hello from " + name;
}
}
执行jsp出错:
Parsing of JSP File '/test9.jsp' failed:
--------------------------------------------------------------------------------
/test9.jsp(6): class 'test.helloWorld' could not be loaded
probably occurred due to an error in /test9.jsp line 6:
<jsp:useBean id="helloBean" scope="page" class="test.helloWorld" />
--------------------------------------------------------------------------------
Wed Aug 20 17:12:33 CST 2003
Parsing of JSP File '/test9.jsp' failed:
--------------------------------------------------------------------------------
/test9.jsp(6): class 'test.helloWorld' could not be loaded
probably occurred due to an error in /test9.jsp line 6:
<jsp:useBean id="helloBean" scope="page" class="test.helloWorld" />