File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
Similar Threads
can i use a normal form with struts?
very serious Synchronization issue....urgent
server-config.wsdd
Problem with include tag
Create multiple line charts in a single JSF frame using JFreechart