我的BokList.jsp文件中包含语句:
<bean:define id="value2" name="bean2" property="value"/>
<%=value2%>
编译时报错:
"BookList.jsp": Error #: 300 : variable value2 not found in class jsp_servlet.__booklist at line 62
会是哪里的问题呀?
...全文
2875打赏收藏
bean:define应该怎么用?
我的BokList.jsp文件中包含语句: 编译时报错: "BookList.jsp": Error #: 300 : variable value2 not found in class jsp_servlet.__booklist at line 62 会是哪里的问题呀?
from my own experience, it is fine in weblogic 5.1, but not in weblogic 8.1. If you read the compiled _BokList.java servlet class, you will find this line:
java.lang.String value2 = null;
shows under weblogic 5.1, but not 8.1.
here is a workaround:
<%-- add this line as intial declaration
<%value2="";%>