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.

[408 byte] By [matam.praveena] at [2007-10-2 16:48:29]
# 1

> 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/

yawmarka at 2007-7-13 17:59:34 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
DAO is full working the database in struts , the controller pass the value to the DAO , and DAO do the wrking in database
java_avneesha at 2007-7-13 17:59:34 > top of Java-index,Other Topics,Patterns & OO Design...