aspose file tools*
The moose likes Struts and the fly likes with out using global execeptions tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "with out using global execeptions tag" Watch "with out using global execeptions tag" New topic
Author

with out using global execeptions tag

ramesh kothakonda
Ranch Hand

Joined: Feb 14, 2006
Posts: 40
hi javaranchers,

with out using global exceptions tag how to handle an exception from struts framework while we are connecting to a database

thanking you,
k.ramesh


The object oriented way of becoming "RICH" is by INHERITANCE<br />Whoever said money can't buy happiness, didn't know where to shop.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you're not using global exceptions, the best way to handle an exception is to catch it in the execute method of your Action class. Once you've caught it, you can ether put a message in theActionMessages object and forward to the same JSP where you can display the error message with an <html:errors> tag, or you can forward to a specific error JSP.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: with out using global execeptions tag