On Apr 12, 2005 3:12 PM, Joe Germuska <[EMAIL PROTECTED]> wrote: 
> 
> This seems like a generally useful strategy. Is your intention to
> name another method to which control would be dispatched?

 *Yes*

> In that
> case, what if that name failed too -- just throw an exception at that
> point?

 *Yes, like in the old case when the method wasn't defined*
 
How would you configure the name of the fallback method? Would you
> define a constant method name like "onLookupFailure" and then advise
> implementors to create a method with that name and their preferred
> signature?

 Good, but I think is more flexible return from getFallbackMethod (or the 
default method) the name of the method directly.
just define in the dispatch base class a protected method that the user can 
overwrite, returnin instead of null a string that contains the name of the 
method.
 Anyway, I'd suggest filing an "enhancement" ticket in Bugzilla and if
you can attach patches to implement this, so much the better!
Thank you for the tips, I hope to give a little contribute to the open 
source community, 
(I've to check some legal problem with my company :( )
 How can I ask to get it in a new version of struts? Will be handy !

http://issues.apache.org/bugzilla/enter_bug.cgi?product=Struts

Joe


At 12:23 PM +0200 4/12/05, Giovanni Santini wrote:
>Hi,
> We use a Dispatch Action for each setup screen that we've to develop.
>Setup screen are called from overview and workflow screen. I think it's 
good
>to add in the NoSuchMethodException a call to a method, something like
>"getFallbackMethod" defined in the dispatch action base class. In that case
>if the user overwritten this method can call a fallback method (or default
>method) without mapping all external call.
>What do you think?
> Graag gedaan

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex



-- 
Graag gedaan 
_____________________________
Giovanni Santini
EDS Italy
ABN-AMRO Working Capital OLS
Loc: Kostverlorenhof 2 AK8000
1183HE Amstelveen (Amsterdam)
The Netherlands
Mobile: +31 (0) 652245333
Tel: +31 (0) 203437771
Fax: +31 (0) 206299404

Reply via email to