Hi Dave,
  Thanks for your quick reply. Suppose that I input this link
"xxx/welcome.do?param1=hello&param2=world&paramList=element1&paramList=element2&paramList=..."
into the link bar in the browser and run it. How can S2 knows to put "hello"
into param1 and "world" into param2 in the welcome action object?
  Could you please kindly explain the procedure? Or lets say, if I define
another field "param4", why not giving "hello" to "param4" instead of
param1?
  Besides, suppose that I just run this link
"xxx/welcome.do?param1=hello&param2=world&paramList=element1&paramList=element2&paramList=..."
in the browser, only the default method "execute" will be called, right?
  Thanks a lot!

2008/12/2 Dave Newton <[EMAIL PROTECTED]>

> --- 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&param2=world&paramList=element1&paramList=element2&paramList=...
> >   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]
>
>


-- 
Best Regards,
Licco

Reply via email to