<?
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
>