This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes inserting global exception from struts config.xml file in database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "inserting global exception from struts config.xml file in database" Watch "inserting global exception from struts config.xml file in database" New topic
Author

inserting global exception from struts config.xml file in database

Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Hi All,

I am using struts1.0.
I am using Global exception in struts-config.xml.
Now i want to insert the global exceptions directly from struts-config.xml to my database,
before going into the respective jsp page.
Is there any way out?

Thanks and Regards,

Khushwinder
[ November 30, 2008: Message edited by: Khushwinder Chahal ]

Khushwinder
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

As you said, you are using global exception handling of Struts, then you must have implemented GlobalExceptionHandler. In that class you can write a logic which takes the exception with cause and insert them into DB and then redirect user to common jsp page notifying the error..

HTH


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Thanks Buddy i will try this out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inserting global exception from struts config.xml file in database
 
Similar Threads
404 prob.
with out using global execeptions tag
Handling Exceptions
Struts action triggered by onUnload event on cloaing a browser
global exceptions in struts