drawback of Validation Framework
where and how to write the connection pool object in the
programe
how to debug the programe and application in struts without
using eclips

Answer Posted / chandra

Connection pool u need to specify in the struts-config.xml

<data-sources>
<!-- configuration for commons BasicDataSource -->
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property
property="driverClassName"
value="org.postgresql.Driver" />
<set-property
property="url"
value="jdbc:postgresql://localhost/mydatabase" />
<set-property
property="username"
value="me" />
<set-property
property="password"
value="test" />
<set-property
property="maxActive"
value="10" />
<set-property

</data-source>
</data-sources>


coming to debugging with out eclipse see the logfile

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the struts2 configuration properties that control file uploading process?

827


Does apache tomcat use struts?

678


Can we have multiple struts config files in a single web app?

694


Does apache struts run on windows?

736


What is the purpose of @key?

767


How do I access token?

713


Describe validate() and reset() methods.

776


What are the two types of validations supported by validator framework?

776


What are the reasons for an error message not being displayed while developing struts application?

723


What is spring and struts in java?

702


What are the loop holes of struts?

769


How do you create message resource?

770


What are action errors?

737


What is structs 2 validation framework?

751


Why use struts framework in java?

728