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

Which design pattern is implemented by Struts2 interceptors?

537


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

508


What are the differences between http direct and http indirect?

456


What are the aware interfaces in struts2?

541


What is the purpose of @after annotation?

575






What is the need of struts?

552


What kind of mvc is struts 2?

546


What is http forward?

537


Which file is used by controller to get mapping information for request routing?

525


What is struts?

567


Which configuration files are used in struts?

508


What are inner class and anonymous class?

538


What is the procedure of operation of a form tag?

544


Whats the difference between the default namespace and the root namespace?

503


Why was reload removed from struts (since 1.1)?

533