日期:2014-05-16 浏览次数:20961 次
<jsp:forward page="WEB-INF/jsp/login.jsp"/>
<s:form id="loginForm" action ="loginAction">
<s:textfield name ="username" label="用户名"/>
<s:password name ="password" label ="密码"/>
<s:textfield name ="vercode" label ="验证码"/>
<s:submit value ="登陆"/>
<input type ="button" onclick ="jumpRegist();" value ="注册"/>
</s:form>
<package name="dg" extends="struts-default" >
<action name ="loginAction" class ="action.LoginAction" >
<result name ="input">WEB-INF/jsp/login.jsp</result>
<result name ="failure">WEB-INF/jsp/error.jsp</result>
</action>
</package>
<struts>
<!-- 开发模式,每次更改配置或者代码后,不用重启服务器 -->
<constant name="struts.devMode" value="true" />
<!-- 允许struts动态请求,只是调用struts里面的某个方法 -->
<constant name = "struts.enable.DynamicMethodInvocation" va