配置文件写得好象有点问题
将<action-mappings>中的<forward name="success" path="/sucess.jsp" />
<forward name="failure" path="/failure.jsp" />
写到
<global-forwards>
<forward name="failure" path="/failure.jsp"/>
<forward name="success" path="/sucess.jsp"/>
</global-forwards>
将<action-mappings>中的<forward name="success" path="/sucess.jsp" />
<forward name="failure" path="/failure.jsp" />
写到
<global-forwards>
<forward name="failure" path="/failure.jsp"/>
<forward name="success" path="/sucess.jsp"/>
</global-forwards>
你主要注意一下你的LoginForm这个类