不用连接池,一切正常!,actionServlet ,Action,以及form中action属性都是正确的
一加上数据源设置,就出现下面的错误!
HTTP Status 404 - Servlet action is not available
--------------------------------------------
type Status report
message Servlet action is not available
description The requested resource (Servlet action is not available) is not available.
struts-config.xml文件:
<?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 id= "DS " key= "myPool " type= "org.apache.commons.dbcp.BasicDataSource " >
<set-property value= "sa " property= "username " />
<set-property value= "sa " property= "password " />
<set-property value= "true " property= "autoCommit " />
<set-property value= "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=myDatabase " property= "url " />
<set-property value= "com.microsoft.jdbc.sqlserver.SQLServerDriver " property= "driverclass " />
</data-source>
</data-sources>
........
</struts-config>
高手帮下忙呀!,谢谢
------解决方案--------------------
up,遇到同样问题,谁能解决啊
------解决方案--------------------
建议确定一下数据库的版本。不同的版本,URL的格式是不一样的。
------解决方案--------------------
大哥你有没把,创建数据源必须的三个包拷贝到lib的目录下呀,兄弟