<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config (View Source for full doctype...)>
<
data-sources
/>
<
form-bean
name
="
researcherForm
"
type
="
actions.ResearcherForm
" />
<
form-bean
name
="
projectForm
"
type
="
actions.ProjectForm
" />
</
form-beans
>
<
global-exceptions
/>
<
global-forwards
/>
-
<
action attribute
="
researcherForm
"
input
="
/researcher/insert.jsp
"
name
="
researcherForm
"
path
="
/researcher
"
scope
="
request
"
type
="
actions.ResearcherAction
"
validate
="
false
">
<
forward
name
="
queryPage
"
path
="
/researcher/query.jsp
" />
</
action
>
-
<
action attribute
="
projectForm
"
input
="
/project/insert.jsp
"
name
="
projectForm
"
path
="
/project
"
scope
="
request
"
type
="
actions.ProjectAction
"
validate
="
false
">
<
forward
name
="
queryPage
"
path
="
/project/query.jsp
" />
</
action
>
</
action-mappings
>
<
message-resources
parameter
="
actions.ApplicationResources
" />
-
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
</plug-in>
</
struts-config
>
..................................................................................................................................................
<?xml version="1.0" encoding="UTF-8" ?>
-
<
beans
xmlns
="
http://www.springframework.org/schema/beans
"
xmlns:xsi
="
http://www.w3.org/2001/XMLSchema-instance
"
xmlns:aop
="
http://www.springframework.org/schema/aop
"
xmlns:tx
="
http://www.springframework.org/schema/tx
"
xsi:schemaLocation
="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
">
<
value
>
com.mysql.jdbc.Driver
</
value
>
</
property
>
<
value
>
jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8&autoReconnect=true&autoReconnectForPools=true
</
value
>
</
property
>
<
value
>
root
</
value
>
</
property
>
<
value
>
</
value
>
</
property
>
</
bean
>
-
<
bean id
="
mySessionFactory
"
class
="
org.springframework.orm.hibernate3.LocalSessionFactoryBean
">
<
value
>
beans/Researcher.hbm.xml
</
value
>
<
value
>
beans/Project.hbm.xml
</
value
>
</
list
>
</
property
>
<
prop key
="
hibernate.dialect
">
org.hibernate.dialect.MySQLDialect
</
prop
>
<
prop key
="
hibernate.show_sql
">
true
</
prop
>
<
prop key
="
current_session_context_class
">
thread
</
prop
>
<
prop key
="
hibernate.cache.provider_class
">
org.hibernate.cache.EhCacheProvider
</
prop
>
<
prop key
="
connection.pool_size
">
10
</
prop
>
<
prop key
="
hibernate.hbm2ddl.auto
">
update
</
prop
>
</
props
>
</
property
>
<
ref
bean
="
dataSource
" />
</
property
>
</
bean
>
<
ref
local
="
mySessionFactory
" />
</
property
>
</
bean
>
<
ref
local
="
researcherDAO
" />
</
property
>
</
bean
>
<
ref
local
="
mySessionFactory
" />
</
property
>
</
bean
>
<
ref
local
="
projectDAO
" />
</
property
>
</
bean
>
</
beans
>
00000000000000000000000000000000000000000000000000000000000000000000
<?xml version="1.0" encoding="UTF-8" ?>
-
<
web-app
xmlns
="
http://java.sun.com/xml/ns/j2ee
"
xmlns:xsi
="
http://www.w3.org/2001/XMLSchema-instance
"
version
="
2.4
"
xsi:schemaLocation
="
http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
">
<
display-name
>
Sample
</
display-name
>
<
servlet-name
>
action
</
servlet-name
>
<
servlet-class
>
org.apache.struts.action.ActionServlet
</
servlet-class
>
<
param-name
>
config
</
param-name
>
<
param-value
>
/WEB-INF/struts-config.xml
</
param-value
>
</
init-param
>
<
param-name
>
debug
</
param-name
>
<
param-value
>
3
</
param-value
>
</
init-param
>
<
param-name
>
detail
</
param-name
>
<
param-value
>
3
</
param-value
>
</
init-param
>
<
load-on-startup
>
0
</
load-on-startup
>
</
servlet
>
<
servlet-name
>
action
</
servlet-name
>
<
url-pattern
>
*.do
</
url-pattern
>
</
servlet-mapping
>
</
web-app
>
000000000000000000000000000000000000000000000000