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 does validation interceptor?

637


What is java struts?

624


What is the role of action class in struts?

651


Why we use struts over servlets?

611


What is actionservlet?

626






What is the purpose of @emailvalidator annotation?

583


What is the difference between requestaware and servletrequestaware interface?

667


Can we handle exceptions in Struts programmatically?

595


Difference between struts and spring? Or why use spring, if you are already using struts?

616


How the flow of various requests happens in struts application?

616


What is struts and why it is used?

588


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

707


Are struts and shocks the same?

595


How to use dispatchaction?

665


Which interceptor is responsible for file upload support?

680