struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabrice dewasmes" <fdewas...@kaptech.com>
Subject RE: query string
Date Tue, 02 Jul 2002 08:04:28 GMT
Hi,

if you've got only one parameter here's what you should write

<html:link page="/products.do" paramId="id" paramName="product"
paramProperty="product">Product 1</html:link>

for more parameters it rapidly becomes more problematic : you have to pass a
bean which has a map of paramName - value to build the whole link.

Fabrice

> -----Message d'origine-----
> De : Billy Ng [mailto:evebill8@hotmail.com]
> Envoyé : mardi 2 juillet 2002 09:56
> À : struts-user@jakarta.apache.org
> Objet : query string
>
>
> I try to use the html:link tag
>
> <html:link page="/products.do<%= product.getProductID() %>">Product
> 1</html:link>
>
> to render the link like
>
> <a href="/myWebapp/products.do?id=1">Product 1</a>
>
> However, it becomes
>
> <a href="/myWebapp/products.do?<%= product.getProduct() %>">Product 1</a>
>
> What did I do wrong?  What is the right way to put the query string to
> html:link tag?
>
> Thanks!
>
> Billy Ng
>
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>


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


Mime
View raw message