struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Howard Moore <Howard.Mo...@datapulse.com>
Subject RE: <html:link>
Date Thu, 22 Mar 2001 09:17:41 GMT
try adding the paramId attribute. e.g.

<html:link page="/addItem.do" paramId="isbn" paramName="item"
paramProperty="isbn">

this should give you http://localhost:8080/test/addItem.do?isbn=0000 (note
without the " quotes)

> -----Original Message-----
> From: Allen Walker [mailto:awalker@mail.utexas.net]
> Sent: 22 March 2001 07:44
> To: struts-user@jakarta.apache.org
> Subject: <html:link>
> 
> 
> <html:form action="/updateTotal">
> <logic:iterate id="item" name="cart" property="items" scope="session">
> 
> ISBN: <bean:write name="item" property="isbn" filter="true"/>
> <html:link page="/addItem.do" paramName="item" paramProperty="isbn">
> <img src="images/trashCan.gif" width="18" height="26">
> </html:link>
> 
> </logic:iterate>
> </html:form>
> 
> -----------
> Ok, the line: <bean:write name="item" property="isbn" 
> filter="true"/> works 
> fine, displays the value, but the line:
> 
> <html:link page="/addItem.do" paramName="item" paramProperty="isbn">
> 
> Doesnt add the isbn parameter, it renders it only as:
> http://localhost:8080/test/addItem.do , I want it to render 
> it as something 
> like
> 
> http://localhost:8080/test/addItem.do?isbn="0000"
> 
> Thanks for any help.
> -allen-
> 

Mime
View raw message