On 10/18/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > Michael, > > I like your code alot but a couple of things prevent me from purloining > it for my own purposes: > > firstly, I like to allocate my base class to sort out user, locale, > msgKeys, and messages objects for use in the subclass. It doesn't seem > to be possible to sandwich a subclass in-between SelectAction and the > child class to do this, isn't that so?
I guess I have to make an utility class out of it, so it could be called from any Action.execute(). I will do that. > Secondly, getKeyMethodMap() looks really clunky - is there no way this > can be pushed into the struts-config.xml? It can be done, but if this to be defined inside existing structures like <action>, then I would have to change Struts code. Another way is to define it somewhere else like <component> instead of <action> or just <action-events>, in this case you would need to include custom ruleset object into web.xml. The latter would be easier because Struts code would not be changed. I will think about moving map to config file, but frankly I do not consider it a priority. Why you don't like it in the class file? What benefit do you expect from moving it to config file? YOu want to be able to remap handlers? BTW, you can purloin ;) from another link that I posted, that version does not use map at all and is _very_ compact. Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]