--- On Tue, 12/2/08, KE LI wrote:
> public class welcome implements Action {
> private List paramList;
> setters....
> public String execute() throws Exception {
> paramList = new ArrayList();
> return SUCCESS;
> }
> }
>
> Then if I input the URL:
> xxx/welcome.do?param1=hello¶m2=world¶mList=element1¶mList=element2¶mList=...
> I found that param1 will be given the value "hello", param2
> will be given the value "world" but of course paramList will
> not be given element1,2,3...etc. I want to ask: [...]
The first issue I see is that you're creating a new list in the execute()
method. The execute() method is executed after the interceptors set the action
properties from the form data--so you're wiping out the work the interceptors
did.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]