On 12/19/05, Srini Pillai <[EMAIL PROTECTED]> wrote:
>
>
> This is the code I tried to display a link with a value in the dynamic
> form:
>
> <c:forEach var="counter" begin="0" end="${numTextFields}" >
> .....
> <a href="<html-el:rewrite
> page="/FAEditor.do"/>?methodToCall=removeElement&id=<c:out
> value="${request['FAEditorForm'].id_${counter}}" />">Remove</a>
> .....
> </c:forEach>
struts tags (from what I remember) I don't believe mix that well when used
within standard html tags.
I think it'll look cleaner anyway using the c:url tag:
<c:url var="url" value="FAEditor.do">
<c:param name="methodToCall" value="removeElement"/>
<c:param name="id" value="${counter}"/>
</c:url>
<a href="${url}">Remove</a>
I'm not sure what you are attempting to do with:
value="${request['FAEditorForm
>
> '].id_${counter}}"
but I doubt you need that . You just probably need the id from the
counter, if not you'll have to explain why not and I could try to help.
--
Rick