Jump to content

crystal

初级会员
  • 帖子总数

    38
  • 注册时间

  • 上次访问

博客评论 由 crystal 发布的

  1. struts-config.xml配置有一行,指定语言包在\WEB-INF\classes下的ApplicationResources.properties,其中.properties的后缀名不必写,如不加路径,此文件默认在class目录下

      <!-- ========== Message Resources Definitions =========================== -->  <message-resources    parameter="ApplicationResources"/>
    
    
      <!-- ========== Global Forward Definitions ============================== -->  <global-forwards>    <forward name="adminLogin" path="/admin/preLogin.do" />  </global-forwards>
    为整个应用系统可以使用的action-forward,而不是一个特定的action。
    
        <action path="/client/register"            type="org.slstudio.tech.user.action.RegisterAction"            name="clientRegisterForm"            scope="request"            validate="true"            input="/client/error_msg.jsp">      <forward name="success" path="/client/user/register_success.jsp" />      <forward name="failed" path="/client/error_page.jsp" />    </action>

    当validate=失败时,转向 input="/client/error_msg.jsp"

×
×
  • 创建新的...