You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2001/06/02 03:23:28 UTC

Re: Problem with tag


On Fri, 11 May 2001, Laurent Cornelis wrote:

> I found a workaround, I wrote :
> 
> <logic:iterate id="faq" name="faqList" type="be.dummy.faq.bean.FAQBean"/>
> <p>
>  <html:link page='/listFAQ.do' anchor='<%=
> ((FAQBean)pageContext.findAttribute("faq")).getId().toString() %>'>
>   <bean:write name="faq" property="question"/>
>  </html:link>
> </p>
> </logic:iterate>
> 
> But I really don't like this solution ...
> 

The reason this is necessary is that you are not allowed to next a tag
inside a tag (the way that you originally tried to do).

> Any cleaner solution will be grealty appreciated !
> 

I'm not sure there is a better solution off the top of my head ...

Craig