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



drawback of Validation Framework where and how to write the connection pool object in the program..

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

More Struts Interview Questions

Why do we need struts?

0 Answers  


Can we have multiple struts config files ?

0 Answers  


collection framework hirarchy?

5 Answers  


What is MVC?

6 Answers   Infosys,


How can we write our own interceptor and map it for action?

0 Answers  






Describe validate() and reset() methods.

0 Answers  


what is the main reason for developing struts? what is advantages over Basic MVC architecture based JAVA Application?

1 Answers  


we have two applications A1 & A2 both are accesing the same databse table employee at the same time how we will manage this so that both application can get the correct no of emloyee while A1 is inserting a employee at the same time while other applicatuion is getting the empployee list.

5 Answers   Accel, TCS,


What is the purpose of redirect result type?

0 Answers  


How an actionform bean is created?

0 Answers  


What is Request Dispatcher and What is reuest Processor??

2 Answers  


How can duplicate form submission be handled in struts 2?

0 Answers  


Categories