下面是struts-config配置:
<?xml version="1.0" encoding="ISO-8859-1" ?><!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"><struts-config>
  
<data-sources>
     <data-source key="sqlDB"
type="org.apache.commons.dbcp.BasicDataSource"/>
     <set-property property="driverClassName"
value="com.mysql.jdbc.Driver"/>
     <set-property property="url"
value="jdbc:mysql://localhost/sqlDB"/>
     <set-property property="maxActive"
value="5"/>
     <set-property property="name"
value="root"/>
     <set-property property="key"
value=""/>
     <set-property property="autoCommit"
value="true"/>
    </data-source></data-sources>

<form-beans>
<form-bean name="formBean" type="classmate.UserForm"/>        
</form-beans>

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

<action-mappings>
<action path="/login" type="classmate.LoginAction" name="formBean"
     scope="request" validate="true" input="/error.jsp"/>
<action path="/regist" forward="/regist.jsp"/>
</action-mappings>

<message-resources parameter="classmate.Zhendy_zh"/>

</struts-config>求教中~~~~up!!!