struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard Miller" ...@howardmiller.co.uk>
Subject RE: iterate and html:link
Date Fri, 11 Oct 2002 20:36:33 GMT
Hi,

Thanks - I did wonder if there was something in <html:link> to do this so I did read

the documentation.

However I couldn't get it to do anything at all - it didn't add anything, plus the 
documentation was very vague (note to whoever - examples for tricky stuff like this 
would be brilliant). 

Howard

On 11 Oct 2002 at 13:18, Karr, David wrote:

> > -----Original Message-----
> > From: Howard Miller [mailto:me@howardmiller.co.uk]
> > Sent: Friday, October 11, 2002 1:07 PM
> > To: struts-user@jakarta.apache.org
> > Subject: iterate and html:link
> > 
> > Hi,
> > 
> > How do I do this....
> > 
> > <logic:iterate name="user" property="queries" id="query" >
> > 
> >   <html:link page='/builder.jsp?id=<%= query.getId() %>' />
> > 
> > </logic:iterate>
> > 
> > Its the <%= query.getId() %>, bit I'm talking about. This bit 
> > of script doesn't get 
> > evaluated. I have spent ages sifting through the archives and 
> > can't find anything 
> > similar... must be a common problem though
> 
> You don't need to use a scriptlet for this.  Just set the "paramName" and
> "paramProperty" attributes of "html:link" to "query" and "id".  This will
> also take care of any URL encoding issues.  Read the API documentation for
> this.
> 
> --
> 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