aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1 exception handler" Watch "Struts 1 exception handler" New topic
Author

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
Author
Rancher

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.
Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Struts 1 exception handler