DAO WITH STRUTS
server.xml is
<Context path="/WebForum" docBase="WebForum" debug="5" reloadable="true"
crossContext="true">
.....
<Resource name="jdbc/WebForumDS" auth="Container" type="javax.sql.DataSource" />
<ResourceParams name="jdbc/webforum">
what is 1)docBase=" " ,2)Resource name=" " and 3)ResourceParams name=" ". please help me to know these values.
> what is 1)docBase=" " ,2)Resource name=" " and
> 3)ResourceParams name=" ". please help me to know
> these values.
1) Specifies the directory which will be created when the .WAR is expanded or the .WAR itself.
2) Defines characteristics of the resource to be returned for JNDI lookups of <resource-ref> and <resource-env-ref> elements in the web application deployment descriptor.
3) Used to configure the resource manager (or object factory) used to return objects when the web application performs a JNDI lookup operation on the corresponding resource name.
http://tomcat.apache.org/tomcat-5.0-doc/config/