Re: [S2] Default Action

2007-07-08 Thread Chris Pratt
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

Re: [S2] Default Action

2007-07-06 Thread Chris Pratt
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

Re: [S2] Default Action

2007-07-06 Thread yitzle
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. Inside

Re: [S2] Default Action

2007-07-06 Thread Chris Pratt
That's more or less what I'm trying to do. Instead of using the default execute(), I can use the default setRole() by specifying the element. That I can't figure out is how to define the default action. (*Chris*) On 7/6/07, yitzle <[EMAIL PROTECTED]> wrote: Oops. I misunderstood your questi

Re: [S2] Default Action

2007-07-06 Thread yitzle
Oops. I misunderstood your question. Maybe use a default action... If there is a way to 'peek' at the URL requested, maybe you can set the role in the default execute() based on that. - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [S2] Default Action

2007-07-05 Thread Chris Pratt
Where would I get the value from? (*Chris*) On 7/5/07, yitzle <[EMAIL PROTECTED]> wrote: I'm not sure what you are trying to do, but each action calls an execute() Couldn't you set the role value in the execute()? - To unsubs

Re: [S2] Default Action

2007-07-05 Thread yitzle
I'm not sure what you are trying to do, but each action calls an execute() Couldn't you set the role value in the execute()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]