nested:link with multiple parameters

2003-06-11 Thread Mike Duffy
Could someone please provide a simple example showing the use of
nested:link with multiple parameters?

According to the documentation:  This tag is an extension of the
html:link tag. Please consult its documentation for information on
tag attributes and usage details. 

According to one book on Struts: To pass multiple values to ... [an
html:link tag] ... you must use a map..

Basically, I just want to created a link to an action and pass the
action two name/value pairs.

Thanks.

Mike

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: nested:link with multiple parameters

2003-06-11 Thread Arron Bates
Usually, I have a Map property in my bean which makes the links for that given
object. For example, my links tend to go something like...


  nested:link action=/testAction property=linkParams /


...bean code for the getLinkParams getter for the property looking like...


  public Map getLinkParams() {
Map m = new HashMap();

m.put(key, key);
m.put(name, name);

return m;
  }


...that way my bean objects typically know what it takes to link them to
another page, and they can hack the mapping of name  values as much as
required when called. Works a treat for me.

All the best.


Arron.



 Could someone please provide a simple example showing the use of
 nested:link with multiple parameters?
 
 According to the documentation:  This tag is an extension of the
 html:link tag. Please consult its documentation for information on
 tag attributes and usage details. 
 
 According to one book on Struts: To pass multiple values to ... [an
 html:link tag] ... you must use a map..
 
 Basically, I just want to created a link to an action and pass the
 action two name/value pairs.
 
 Thanks.
 
 Mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]