Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How display data base errors on web console by using the
Struts Framework?

Answers were Sorted based on User's Feedback



How display data base errors on web console by using the Struts Framework?..

Answer / ranjith nambiar

In hibernate configuration file, hibernate.cfg.xml, with in <session-factory> put <property name="show_sql">true</property>.

Is This Answer Correct ?    1 Yes 2 No

How display data base errors on web console by using the Struts Framework?..

Answer / m gangadhar

hi,
define a base class which handles all error related
operations. get Error code from E.getErrorCode() in Catch
block and then throw that error to action class.
Example.
Error code 00001: is defined for Unique constraint
voilation. for this
catch{
if(errorCode == 00001){
throw new UniqueKeyException();
}
}
// this unique exception is userdefined exception in my
framework.

and catch this exception in your action class. and be
remember in your struts-config file action tag define
input="/ErrorPage.do" property. then only it redirects to
that page in what u defined in input tag action path.

if any thing regarding this one feel free to mail me.
Thanks a lot

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Struts Interview Questions

kindly can any one post for me portlet,hibernate,spring example code and configuration,and some related tutorials plz its urgent for me....thanks in advance ............

1 Answers  


Are interceptors and filters different?

0 Answers  


Explain about the process of functioning of the struts program?

0 Answers  


Give an example where struts tiles may be used?

0 Answers  


What is ognl?

0 Answers  


What is the need of struts?

0 Answers  


what is the diff between struts1.0 and struts2.0

2 Answers   Intel,


Wat is Difference between Mvc1 architecture and Mvc2 Architecture?

21 Answers   HCL, IBM, Sanyaa Infotech,


Explain architecture of struts2?

0 Answers  


What is struts2 framework?

0 Answers  


What are the ways in which duplicate form submission can occur?

0 Answers  


multiple instances for action class is it possible

8 Answers   iFlex, ProSoft,


Categories