You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nathan Coast <na...@codeczar.com> on 2003/10/07 09:02:17 UTC
wrapping action invocations
Hi,
Apologies if this is a duplicate, I posted a few days ago but it doesn't seem to
have made it to the list.
I'd like to introduce a layer between the action servlet and the action classes
to perform generic processing - authorisation, error handling etc.
I have 2 solutions:
1) subclass the RequestProcessor with generic code in an overridden
processActionPerform method.
2) provide an Action base class, generic code goes in a final implementation of
the execute method which delegates to an abstract doExecute method. Each
subclass implements the doExecute method.
or is there some other way of achieving this?
Thanks
Nathan
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org