Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1 exception handler

 
Mark Wa
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Struts 1 exception handler class has an HttpServletRequest in its execute() method.
 
Mark Wa
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see. Of course I can get the session ID from that.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic