Erik Hatcher wrote:
> - Any particular reason why the "last one wins" in your loading of the key
> mappings?  Ideally there would not be duplicates, but I prefer the first one
> wins (although I have no strong preference, it just seems friendlier to
> allow the first one for some reason).

Given the use-case and the small number of items involved, it didn't
seem worthwhile to check for duplicates.


> - Why use the response.sendError?  I realize this is done elsewhere in
> Struts, but I much prefer to allow exceptions to climb back up and let
> higher layers deal with them if possible, and having it kick back to the JSP
> page and letting the errorPage directive catch it and forward on would be my
> preference.  Therefore I like throwing a ServletException better.  Any other
> pros/cons to either approach?

The Action is the highest layer, and there is no guarantee that there
will be a JSP with an error directive.


> - Any preference to the position of the "key" parameter on the template
> patternered 'perform' method?  I put mine first, and you switched yours to
> last.  I have no preference, just curious on why the switch.

Just the general idea that extensions add on to the end.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to