At 9:57 AM -0700 2002/07/05, Billy Ng wrote: >It is because I need get the parameter data from a bean. I have >tried something like: > ><html:link page="blah.do?param1=<%= bean.getFirstArg() %>¶m2=<%= >bean.getSecondArg() %>"/> > >but it won't work. Some said I need to use the param* attributes. >I know it is easy for 1 parameter, but I don't know how to use it >with multiple parameters.
The below is from <http://jakarta.apache.org/struts/struts-html.html#link> >If you prefer to specify a java.util.Map that contains all of the >request parameters to be added to the hyperlink, use one of the >following techniques: > > * Specify only the name attribute - The named JSP bean >(optionally scoped by the value of the scope attribute) must >identify a java.util.Map containing the parameters. > * Specify both name and property attributes - The specified >property getter method will be called on the bean identified by the >name (and optional scope) attributes, in order to return the >java.util.Map containing the parameters. > >As the Map is processed, the keys are assumed to be the names of >query parameters to be appended to the hyperlink. The value >associated with each key must be either a String or a String array >representing the parameter value(s), or an object whose toString() >method will be called. If a String array is specified, more than one >value for the same query parameter name will be created. -- -- * Joe Germuska { [EMAIL PROTECTED] } "It's pitiful, sometimes, if they've got it bad. Their eyes get glazed, they go white, their hands tremble.... As I watch them I often feel that a dope peddler is a gentleman compared with the man who sells records." --Sam Goody, 1956 tune in posse radio: <http://www.live365.com/stations/289268> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

