You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jonathan Fullam <jo...@gmail.com> on 2006/03/01 20:53:51 UTC
Accessing the ExceptionHandler
Hello,
I'd like to access the ExceptionHandler from a class other than an Action
class. Preferably, I'd like to access the same instance that Struts uses
from within an Action. If this is not possible, does anybody know how I can
get to the specific ExceptionHandler class name so that I can create a new
instance?
Assume that I have access to the current HttpServletRequest and
ActionMapping objects.
I need this because I'm calling an inner class that implement Runnable from
within an Action class. I start running a thread in my Action execute
method so that I can do some processing in the background so the user
doesn't have to wait (any better approaches to accomplishing this are
welcome as well).
Thanks,
Jonathan