You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nathan Maves <Na...@Sun.COM> on 2004/07/27 00:56:17 UTC

html:link with params

Are there any plans to add dynamic param to the html:link tag to give 
it the same functionality as the c:url?

i.e
<html:link ...>
	<html:param .../>
</html:link>

I know that we can use a Map to achieve this but I hate creating them 
in a jsp.

Nathan


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


Re: html:link with params

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
There is an open Bugzilla request for this enhacement - you can *vote* for
bugs you wish to see incorporated - go to the appropriate Bug and click on
the "Vote for this bug link".

http://issues.apache.org/bugzilla/show_bug.cgi?id=11154

If you just want to append a single parameter to the <html:link> tag you can
use the paramName, paramProperty and paramId attributes to do this without
having to use a Map.

Niall

----- Original Message ----- 
From: "Nathan Maves" <Na...@Sun.COM>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, July 27, 2004 12:28 AM
Subject: Re: html:link with params


> Think of a case where you have a List of people and you wanted to
> create a link for each person.  I would have to create n# of Maps in
> the Action.  If it was done in something like a forEach loop this could
> be done all at once.  Not sure how good of an example this is :)
>
> Nathan
> On Jul 26, 2004, at 5:16 PM, Wendy Smoak wrote:
>
> > From: "Nathan Maves" <Na...@Sun.COM>
> >> I know that we can use a Map to achieve this but I hate creating them
> >> in a jsp.
> >
> > I'm puzzled... why would you create in the JSP instead of in the
> > Action,
> > where presumably it wouldn't bother you as much?
> >
> > Not that that answers your question, but that part jumped out at me.
> >
> > -- 
> > Wendy Smoak
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



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


Re: html:link with params

Posted by Nathan Maves <Na...@Sun.COM>.
Think of a case where you have a List of people and you wanted to 
create a link for each person.  I would have to create n# of Maps in 
the Action.  If it was done in something like a forEach loop this could 
be done all at once.  Not sure how good of an example this is :)

Nathan
On Jul 26, 2004, at 5:16 PM, Wendy Smoak wrote:

> From: "Nathan Maves" <Na...@Sun.COM>
>> I know that we can use a Map to achieve this but I hate creating them
>> in a jsp.
>
> I'm puzzled... why would you create in the JSP instead of in the 
> Action,
> where presumably it wouldn't bother you as much?
>
> Not that that answers your question, but that part jumped out at me.
>
> -- 
> Wendy Smoak
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


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


Re: html:link with params

Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Nathan Maves" <Na...@Sun.COM>
> I know that we can use a Map to achieve this but I hate creating them
> in a jsp.

I'm puzzled... why would you create in the JSP instead of in the Action,
where presumably it wouldn't bother you as much?

Not that that answers your question, but that part jumped out at me.

-- 
Wendy Smoak


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