On 11/29/05, Jim Reynolds <[EMAIL PROTECTED]> wrote:
> I created a FormBean which holds a list of POJOs. The FormBean has a
> method called getPOJOs() which returns a list. In my JSP page, I am
> iterating over the list like so:
>
> <logic:iterate id="POJO" name="FormBean">
>
> and that appears to get each POJO object and I can get data from it like so:
> <html:text name="POJO" property="name"/>
>
> and all is good.
>
> But I need to create a url so I am trying this:
> <c:url value="/headon.do" var="link">
> <c:param name="name" value="XXXXXXXXXXproblem here" />
> </c:url>
>
> No matter what I try I cannot seem to get a proper link build:
> I have tried
> <c:param name="name" value="<c:out value='${POJO.name}'/>"/>
> and
> bean:write
> ,etc
>
> How can I get this to work? Any ideas.
How about:
------------
<c:url value="/headon.do">
<c:param name="myname">
<c:out value="${POJO.name}" />
</c:param>
</c:url>
You cannot put tag into tag, but if it is a "value" attribute, then it
is usually can be treated as an element body.
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]