The value for the useBean class attribute is invalid 问题
2010-09-14 10:22
489 查看
jsp里面用
<%@page contentType="text/html;charset=gb2312"%>
<jsp:useBean id="zxhw" class="com.nethelp.bean.Alarm"/>
<%
out.println(zxhw.AlarmPingFa());
%>
报错了,准确的说一台win服务器上面运行ok,一台linux上面运行wrong
后来上网找看到
http://www.cnblogs.com/feiweiwei/archive/2007/12/05/984484.html
1. 在编译 JSP 时(不是运行时),指定的 Bean 类没找到
2. Bean 虽然找到了,但是它不是 public 的,或者找到的 class 文件是 interface 或抽象类
3. Bean 类中没有 public 的默认构建函数
仔细看了一下
public 构造函数是有的,也没有参数
但是里面用到两个成员变量,这两个变量没有声明为public
赶快声明一下,ok
<%@page contentType="text/html;charset=gb2312"%>
<jsp:useBean id="zxhw" class="com.nethelp.bean.Alarm"/>
<%
out.println(zxhw.AlarmPingFa());
%>
报错了,准确的说一台win服务器上面运行ok,一台linux上面运行wrong
后来上网找看到
http://www.cnblogs.com/feiweiwei/archive/2007/12/05/984484.html
1. 在编译 JSP 时(不是运行时),指定的 Bean 类没找到
2. Bean 虽然找到了,但是它不是 public 的,或者找到的 class 文件是 interface 或抽象类
3. Bean 类中没有 public 的默认构建函数
仔细看了一下
public 构造函数是有的,也没有参数
但是里面用到两个成员变量,这两个变量没有声明为public
赶快声明一下,ok
相关文章推荐
- The value for the useBean class attribute is invalid 问题
- 详解 Tomcat: The value for the useBean class attribute is invalid 问题
- 在使用JavaBean时遇到的问题:The value for the useBean class attribute is invalid
- Java中TOMCAT下使用JavaBean出现The value for the useBean class attribute is invalid 问题 .
- The value for the useBean class attribute is invalid 问题
- The value for the useBean class attribute is invalid 问题
- The value for the useBean class attribute is invalid 问题
- 详解 Tomcat: The value for the useBean class attribute is invalid 问题
- 详解 Tomcat: The value for the useBean class attribute is invalid 问题
- 详解 Tomcat: The value for the useBean class attribute is invalid 问题
- JSP(Tomcat)问题: The value for the useBean class attribute is invalid
- The value for the useBean class attribute XXX is invalid 问题详解
- 关于Tomcat: The value for the useBean class attribute is invalid 问题的另类解释
- The value for the useBean class attribute XXX is invalid”
- The value for the useBean class attribute is invalid
- The value for the useBean class attribute XXX is invalid 异常绝对详解释
- 详解 Tomcat: The value for the useBean class attribute is invalid
- "The value for the useBean class attribute com.Bean.UserInfo is invalid."解决方案
- 详解 Tomcat: The value for the useBean class attribute is invalid
- Tomcat————The value for the useBean class attribute XXX is invalid 异常绝对详解释