struts.xml
web.xml
LoginAction
index.jsp
以上的全部代码,还有要注意的一个地方!
<result name="success">/welcome.jsp</result>
<result name="error">/error.jsp</result>
name的属性值必须小写,如果写成大写,会报找不到处理类的错误,虽然LoginAction中返回值是大写,但这里必须小写!
struts.xml
web.xml
LoginAction
index.jsp
以上的全部代码,还有要注意的一个地方!
<result name="success">/welcome.jsp</result>
<result name="error">/error.jsp</result>
name的属性值必须小写,如果写成大写,会报找不到处理类的错误,虽然LoginAction中返回值是大写,但这里必须小写!