Hi,

I'm using Struts 1

I have  a set of indexed error properties :

myProprty0
myPorperty1
myProperty2

and so on

I'd like to be able to pass the relevant name in to <html:errors property
via a variable – for example:

<c:set var="total" value="${0}"/

iterate...

<c:set var="myErrProp" value="$myProprty{total}" />

<html:errors property="<c:out value="${myErrProp" /><br/>

<c:set var="total" value="${total + 1}"/>

</iterate>

Is there a way to do this?

Thanks in advance,

Charles

Reply via email to