Prodigy/kf智
我的博客
posts - 20,comments - 7,trackbacks - 0

下面是对web.xml的配置

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

 <resource-ref>
      <description>DB Connection</description>
//res-ref-name 这里也是你的JNDI名字 但是要注意必须和你前面的JNDI的名字一样才可以(server.xml的JNDI名字相同)
      <res-ref-name>jdbc/bbs</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
  </resource-ref>  

</web-app>

posted on 2006-03-29 15:26 xiaozhi 阅读(1180) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: