File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 1 exception handler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1 exception handler" Watch "Struts 1 exception handler" New topic

Struts 1 exception handler

Mark Wa
Ranch Hand

Joined: May 29, 2009
Posts: 122
Hi all,

I have a class that extends the struts ExceptionHandler. I understand that whenever an error is thrown up the stack. It is eventually caught by the extended exception handler. The class increments a count . Only now I need to write some functionality that only increments the count once per session.
Any ideas how?

Thanks in advance
David Newton

Joined: Sep 29, 2008
Posts: 12617

The Struts 1 exception handler class has an HttpServletRequest in its execute() method.
Mark Wa
Ranch Hand

Joined: May 29, 2009
Posts: 122
I see. Of course I can get the session ID from that.
I agree. Here's the link:
subject: Struts 1 exception handler
Similar Threads
Struts 2, page refresh increases memory
exception in struts
Spring & Struts - loading spring exception class from struts-config.xml
Error Page