struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: How can these query data be got?
Date Tue, 02 Dec 2008 11:16:24 GMT
--- On Tue, 12/2/08, KE LI wrote:
> 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?

Because those are the names of the parameters?

The "parameters" interceptor puts named parameters into action properties. You might want
to check out some of the S2 documentation.

http://struts.apache.org/2.x/docs/parameters-interceptor.html

>  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, 

Correct.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message