U need to put the scriptlet code also in double quotes...

<logic:iterate name="causeCodeTable"
                          property="causeCodeTable"
                          offset="<%=causeCodeTable.getCurrentIndex()%>"
                          length="<%=causeCodeTable.getMaxDisplayValue()%>"
                          id="causeCodeRecord"
                          type="com. ... .CauseCodeData"
                          indexId="index">


-----Original Message-----
From: amerolla [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 11:30 PM
To: struts-user
Cc: amerolla
Subject: (Newbie Question) How to use java code as attributes in struts
tags


I searched the archives but couldn't find anything on this.

When I try to use java code or jsp tags as the value of an attribute
in a Struts tag element, I get a compilation error.

The specific example is:

<logic:iterate name="causeCodeTable"
                          property="causeCodeTable"
                          offset=<%=causeCodeTable.getCurrentIndex()%>
                          length=<%=causeCodeTable.getMaxDisplayValue()%>
                          id="causeCodeRecord"
                          type="com. ... .CauseCodeData"
                          indexId="index">

I'm tying to display a subset of an array of objects starting at "offset"
and up to "length" entries. If I hardcode the values of offset and
length, it works exactly as I'd expect.

Any suggestions? Thanks in advance.

Tony Merolla


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to