下面是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!!!
<?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!!!
解决方案 »
- 跪求jbpm4.X的 web 流程设计器 要中文版的
- 关于struts2拦截器的问题
- Servelt与Jsp
- 求THinking in java!
- 不惜分数求JDK Documentation中文版
- TomCat5.0不能显示jsp页面,报异常Unable to compile class for JSP!!!
- 关于try/catch用法的疑惑!等高手!!(88分)
- 有没有人见过bt软件的源代码
- VisualAge for Java 在哪可以下载?
- 怎样把查询数据库得到的纪录用xml包的形式输出?高分!
- Servlet actionServlet is not available
- iBATIS的简单问题,大家帮帮我
type="org.apache.commons.dbcp.BasicDataSource"/> 已经 />
再看这行 </data-source>
又来个 </data-source>是不是错误了.
谢谢你哦,呵呵。我老是没注意到细节,又出笑话了
呵呵