请问javaBean程序放在weblogic哪个目录下jsp程序才可以调用
jsp:
<html>
<head>
<title>JavaBean 试验</title>
</head>
<body>
<jsp:useBean id="helloBean" scope="page" class="test.helloWorld" />
<%= helloBean.getHi() %>
<hr>
<%
helloBean.name = "JSP";
out.print(helloBean.getHi());
%>
</body>
</html>
javabean:
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