问题描述
当我在 tomcat 服务器上运行我的 java web 应用程序时 eclipse-workspace.Metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ProvaUseBean2\WEB-INF 不包含必须包含我在 index.jsp 中使用的所有 BeanClasses 的目录类>
我的 index.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<jsp:useBean id="classBean" scope="request" class="logic.bean.ClassBean"/>
<!DOCTYPE html>
<html>
<head>
<Meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
</body>
</html>
我的 ClassBean:
package logic.bean;
public class ClassBean {
private String myAttr;
public void setMyAttr(String s) {
myAttr = s;
}
public String getMyAttr(String s) {
return myAttr;
}
}
当我在 TomcatServer 上运行时,我收到此错误:
org.apache.jasper.JasperException: /index.jsp (line: [3],column: [0]) The value for the useBean class attribute [logic.bean.ClassBean] is invalid.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)