That would do it too. But you could've used the info in ActionProxy
in the prepare() method to differentiate between actions.
Later,
Zarar
On 8/20/07, Boon Leng <[EMAIL PROTECTED]> wrote:
>
> Hi Zarar,
>
> I managed to solve the problem by using PreResultListener and find the
> action info in Ac
Hi Zarar,
I managed to solve the problem by using PreResultListener and find the
action info in ActionProxy.
Now I can load the collections base on method and result type :)
Thanks for your help.
Regards,
Boon Leng
Zarar Siddiqi wrote:
>
> You could implement Preparable and load countryOption
Hi Dilip Ladhani-2,
Thanks for you reply, I know your solution works on struts 1, but I'm using
struts 2.
How can I call validate method in my Action class explictly?
Thanks.
Regards,
Boon Leng
Dilip Ladhani-2 wrote:
>
> Well, here's what I do.
> 1) Have a private method (prepare??) in your a
Hi,
I have tried using Preparable and putting all the collections loading in
prepare(), but because my action contains multiple methods and each load
different kind of collections, end up every method call will retrieve all
the collections even though it's not using it. Is there anyway I able to
Well, here's what I do.
1) Have a private method (prepare??) in your action class which is
responsible for populating all your Select boxes. This method is
called from your main Action method.
2) Call the validate method from your Action class explictly, instead
of setting "validate=true" in the s
You could implement Preparable and load countryOptions in the prepare() method.
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html
Zarar
On 8/20/07, Boon Leng <[EMAIL PROTECTED]> wrote:
>
> In my form, I have a select box which get the option value populate
6 matches
Mail list logo