我用STRUTS做了个简单的页面转发,
index.jsp如下:
<html:form action="/user">
username : <html:text property="username"/<br/>
<html:submit/><html:cancel/>
</html:form>Action中不执行任何操作,直接跳转到success.jsp
success.jsp如下:
<html:form action="/user">
username : <html:text property="username"/<br/>
</html:form>问题:我在index.jsp中输入cc,点击提交,为什么在success.jsp中会显示出cc?
我没有在action中做任何操作,
我认为只有在action中setAttribute(...,...),然后再页面上<bean:write name=...>才能显示出cc的。
index.jsp如下:
<html:form action="/user">
username : <html:text property="username"/<br/>
<html:submit/><html:cancel/>
</html:form>Action中不执行任何操作,直接跳转到success.jsp
success.jsp如下:
<html:form action="/user">
username : <html:text property="username"/<br/>
</html:form>问题:我在index.jsp中输入cc,点击提交,为什么在success.jsp中会显示出cc?
我没有在action中做任何操作,
我认为只有在action中setAttribute(...,...),然后再页面上<bean:write name=...>才能显示出cc的。
就传到success.jsp了
好多书都只是将struts的使用,没有具体深入将它的原理