这应该是一个在tomcat5.5.28中的一个bug.
官网网站描述如下:
https://issues.apache.org/bugzilla/show_bug.cgi?id=47822
我当前的开发环境是tomcat5.5.28,下在使用jsp标签
页面1:
<form action="type2.jsp" method="post">
<input type="text" name="id"></input>
<input type="text" name="username"></input>
<input type="password" name="password"></input>
<input type="submit"></input>
</form>
页面2:
<jsp:useBean id="user" class="com.jin.UserBean" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<A HREF="type3.jsp">Continue</A>
页面3:
hi,<jsp:getProperty name="user" property="password"></jsp:getProperty>
在页面3的时候出错。具体信息为
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: jsp:getProperty for bean with name 'user'. Name was not previously introduced as per JSP.5.3
官网网站描述如下:
https://issues.apache.org/bugzilla/show_bug.cgi?id=47822
我当前的开发环境是tomcat5.5.28,下在使用jsp标签
页面1:
<form action="type2.jsp" method="post">
<input type="text" name="id"></input>
<input type="text" name="username"></input>
<input type="password" name="password"></input>
<input type="submit"></input>
</form>
页面2:
<jsp:useBean id="user" class="com.jin.UserBean" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<A HREF="type3.jsp">Continue</A>
页面3:
hi,<jsp:getProperty name="user" property="password"></jsp:getProperty>
在页面3的时候出错。具体信息为
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: jsp:getProperty for bean with name 'user'. Name was not previously introduced as per JSP.5.3