struts-config.doc

 
<? 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 >
< data-source type = "org.apache.tomcat.dbcp.dbcp.BasicDataSource" >
    < set-property
      property = "driverClassName"
      value = "oracle.jdbc.driver.OracleDriver" />
    < set-property
      property = "url"
      value = "jdbc:oracle:thin:@192.168.5.28:1521:w2046" />
    < set-property
      property = "username"
      value = "scott" />
    < set-property
      property = "password"
      value = "tiger" />
    < set-property
      property = "maxActive"
      value = "10" />
    < set-property
      property = "maxWait"
      value = "5000" />
    < set-property
      property = "defaultAutoCommit"
      value = "true" />
   
   
</ data-source >
</ data-sources >
 
  < form-beans >
  < form-bean name = "wc" type = "form.sayform" />
 
    < form-bean name = "dy" type = "org.apache.struts.validator.DynaValidatorForm" >
    < form-property name = "firstName" type = "java.lang.String" />
     < form-property name = "lastName" type = "java.lang.String" />
      < form-property name = "userName" type = "java.lang.String" />
       < form-property name = "email" type = "java.lang.String" />
        < form-property name = "phone" type = "java.lang.String" />
         < form-property name = "fax" type = "java.lang.String" />
          < form-property name = "passwordCheck" type = "java.lang.String" />
           < form-property name = "password" type = "java.lang.String" />
       
   
    </ form-bean >
   
   < form-bean name = "ww" type = "form.CopyOfhh" />
  < form-bean name = "hh" type = "form.hh" />
    </ form-beans >
   
  < global-exceptions />
  < global-forwards >
  < forward name = "qqq" path = "/say.jsp" />
  < forward name = "qqqq" path = "/abcd.do" />
   </ global-forwards >
  < action-mappings >
 
  < action path = "/hello" type = "action.hello" name = "wc" >
  < forward name = "hello" path = "/index.jsp" />
  </ action >
 
  < action path = "/abcd" type = "action.abcd" >
  < forward name = "success" path = "/chenggong.jsp" />
 
  </ action >
 
 
    
  < action path = "/caiwei" type = "action.caiwei" name = "hh" input = "/say.jsp" >
  < exception key = "error1" type = "java.sql.SQLException" path = "/say.jsp" />
  < forward name = "www" path = "/www.jsp" />
   < forward name = "index" path = "/index.jsp" />
  </ action >
 
  < action path = "/CopyOfcaiwei" type = "action.CopyOfcaiwei" name = "ww" input = "/ssay.jsp" >
  < exception key = "error1" type = "java.sql.SQLException" path = "/ssay.jsp" />
  < forward name = "www" path = "/wwww.jsp" />
   < forward name = "index" path = "/index.jsp" />
  </ action >
  < action path = "/aaa" type = "org.apache.struts.actions.ForwardAction" parameter = "index" />
 
  < action path = "/dynacaiwei" type = "action.dynacaiwei" name = "dy" input = "/sssay.jsp" >
  < exception key = "error1" type = "java.sql.SQLException" path = "/sssay.jsp" />
  < forward name = "www" path = "/wwwww.jsp" />
   < forward name = "index" path = "/index.jsp" />
  </ action >
 
   </ action-mappings >
  < message-resources parameter = "com.yourcompany.struts.ApplicationResources" />
 
  < plug-in className = "org.apache.struts.validator.ValidatorPlugIn" >
    < set-property
        property = "pathnames"
        value = "/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
  </ plug-in >
  < plug-in className = "org.apache.struts.tiles.TilesPlugin" >
 
     
      < set-property property = "definitions-config"
                       value = "/WEB-INF/tiles-defs.xml" />
      <!-- Set Module-awareness to true -->
      < set-property property = "moduleAware" value = "true" />
    </ plug-in >
 
</ struts-config >
 
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值