<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config (View Source for full doctype...)>
<
set-property
property
="
driverClassName
"
value
="
com.microsoft.jdbc.sqlserver.SQLServerDriver
" />
<
set-property
property
="
url
"
value
="
jdbc:microsoft:sqlserver://localhost:1433;User=sa;Password=123;DatabaseName=teaching
" />
<
set-property
property
="
username
"
value
="
sa
" />
<
set-property
property
="
password
"
value
="
123
" />
</
data-source
>
</
data-sources
>
<
form-bean
name
="
LoginForm
"
type
="
包名.LoginForm
" />
</
form-beans
>
<action-mappings>
-
<
action path
="
/login
"
type
="
处理的包名.LoginAction
"
name
="
LoginForm
"
validate
="
true
"
scope
="
request
"
input
="
/login.jsp
"
>
<
forward
name
="
failure
"
path
="
/login.jsp
"
/>
<
forward
name
="
userinfo
"
path
="
/manager/manage.jsp
"
/>
<
forward
name
="
teacher
"
path
="
/teacher/teacher.jsp
"
/>
<
forward
name
="
student
"
path
="
/student/student.jsp
"
/>
</
action
>
<action-mappings>
<
message-resources
parameter
="
包名.ApplicationResources
"
/>
</
struts-config
>