For anybody following this thread, I finally answered my own question by searching through the code. There is an undocumented struts.xml element that will allow you to redefine the default Action class that gets called when no class is specified on an action definition. It's not in the DTD, but it works because com.opensymphony.xwork2\config\providers\XmlConfigurationProvider.loadDefaultClassRefchecks for it.
<default-class-ref class="com.anodyzed.portal.controller.BaseAction"/> (*Chris*) On 7/6/07, Chris Pratt <[EMAIL PROTECTED]> wrote:
I think we're both on the same page, but according to some things I've read on the internet, I should be able to change the default class. But when I try what they suggest, it doesn't work. I'm hoping someone here knows for sure whether it can be done or not. If not, I'd like to suggest it as a feature for the next version. (*Chris*) On 7/6/07, yitzle < [EMAIL PROTECTED]> wrote: > > I think the trouble is you want are specifying the action but not its > matching class, in which case it uses the default class which can not > be changed. > > I'm suggesting that you don't have the action in the xml file and have > it use the default action for which you had specified the class. > <action name="Default" class="package.base"> > > Inside base.execute() you examine the URL and set the role. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >