I think I have sorted my parameter issues, and because this is probably 
documented somewhere I feel reather silly. My class variables where all 
declared public so the parameters were being set directly into the variables 
themselves, Bypassing my getter methods. A bit weird, but declaring them 
private has solved my problems.

Still need help chaining my Actions, but I am currently doing it in the JSP 
page itself - having a simple <webwork:if test="lastpage"> and assigning the 
action accordingly.


>From: "Toby Hede" <[EMAIL PROTECTED]

m>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [Webwork-user] command driven actions
>Date: Thu, 31 Jan 2002 23:41:03 +0000
>
>OK, validation is not currently occuring except in doExecute...at least 
>that
>is by design rather than by my confusion.
>
>I read between the lines when I saw the isCommand() method...
>
>The parameters are weird.
>
>I have extended ActionSupport and implemented CommandDriven, SessionAware
>and ParameterAware. I will have a closer look and see if I am doing 
>anything
>wrong...My examples work fine. And indee, and made a simple test
>(HelloWorld) that also works .
>
>Can you clarify what you mean by: 'having one action internally delegate to
>the chain of actions that you want to execute'.
>
>Thanks for the assistance guys, gotta love Open Source!
>
>
>
>
>
>>From: Rickard <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>CC: [EMAIL PROTECTED]
>>Subject: Re: [Webwork-user] command driven actions
>>Date: Thu, 31 Jan 2002 10:09:47 +0100
>>
>>Toby Hede wrote:
>>
>>>I have a couple of queries about command driven actions.
>>>
>>>My commands are working fine, I implement CommandDriven, but I am
>>>finding a couple of things:
>>>- parameters are not being set
>>
>>
>>Hm.. they should be... strange..
>>
>>
>>>- validation is not occurring
>>
>>
>>The current code only calls validation if no command is set. Hm.. maybe
>>this should be changed... what do ya'll think?
>>
>>
>>>I have overcome these issues by implmenting Parameter aware to retirve
>>>parameters manually and calling doValidate from my doXxx command
>>>implementation.
>>
>>>
>>>Is this normal? Does making an action CommandDriven over ride these
>>>features? Is there something I am missing?
>>
>>
>>I'm using CommandDriven with parameters and it's working just fine..
>>have you looked at any of the examples? They seem to work just fine with
>>this.
>>
>>
>>>My other issue is that I would like to chain actions together somehow,
>>>and I was wondering how this is achieved?
>>
>>
>>Three ways (AFAIK). Either by setting an action as the result of another
>>action, by having one action internally delegate to the chain of actions
>>that you want to execute, or by having each action delegate explicitly
>>to the next action. I would prefer the second option if possible.
>>
>>
>>/Rickard
>>
>>
>>--
>>Rickard Öberg
>>Author of "Mastering RMI"
>>Chief Architect, TheServerSide.com
>>   The Middleware Company - We Build Experts!
>>
>>
>>_______________________________________________
>>Webwork-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/webwork-user
>>
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
>
>
>_______________________________________________
>Webwork-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/webwork-user
>


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to