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
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
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
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
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
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
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]
7 matches
Mail list logo