日期:2014-05-19 浏览次数:20773 次
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//XWork Validator 1.0.2//EN"
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<validators>
<field name="corpId">
<!-- 验证字符串不能为空 -->
<field-validator type="requiredstring">
<!-- 去空格 -->
<param name="trim">true</param>
<!-- 错误提示信息 -->
<message>用户名不能为空</message>
</field-validator>
<!-- 验证字符串长度 -->
<field-validator type="stringlength">
<param name="minLength">2</param>
<param name="maxLength">20</param>
<message>用户名长度应在2到18个字符间</message>
</field-validator>
</field>
<field name="password">
<field-validator type="requiredstring">
<param name="trim">true</param>
<message>密码不能为空</message>
</field-validator>
<field-validator type="stringlength">
<param name="minLength">6</param>
<param name="maxLength">18</param>
<message>密码长度应在6到18个字符之间</message>
</field-validator>
</field>
</validators>
<struts>
<include file="mrbt-default.xml" />
<package name="user" extends="mrbt-default" namespace="/user">
<action name="linkimage">
<result>/jsp/image.jsp</result>
</action>
<action name="login" class="corpUserLogin">
<result name="success" type="dispatcher">/jsp/OperationRes.jsp</result>
<result name="error" type="dispatcher">/jsp/message/error.jsp</result>
<result name="input" type="dispatcher">/jsp/Login.jsp</result>