struts-config.xml简单配置

来源:互联网 发布:soaoffice java 编辑:程序博客网 时间:2024/05/22 15:44
<? xml version ="1.0" encoding= "UTF-8" ?>
<! DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd" >

<struts-config>
  <data-sources />

  <form-beans >   
       <form-bean name= "rightManagerForm" type ="com.accp.form.RightManagerForm" ></ form-bean>
  </form-beans >

<global-exceptions />

  <global-forwards >
       <forward name= "error" path ="/error.jsp" ></ forward>
  </global-forwards >

  <action-mappings >

          <!-- 权限管理模块 -->
       <action path= "/right"
                   type ="org.springframework.web.struts.DelegatingActionProxy"
                   scope ="request"
                   name ="rightManagerForm"
                   parameter ="method" >

             < forward name ="login" path= "/login.jsp" redirect ="true" ></ forward>
       </action >

  </action-mappings >

  <message-resources parameter ="com.yourcompany.struts.ApplicationResources" />

     <!-- 组件方式 注册时间转换器 -->
   <plug-in className= "com.accp.util.UtilDateConverterPlugIn" ></ plug-in>
   

</ struts-config >
原创粉丝点击