hi,
try this code.
<%=indexVal.intValue()%>
Regards,
Nuwan.
----- Original Message -----
From: "Chaudhary, Harsh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Tuesday, February 27, 2007 6:22 PM
Subject: Scriptlets in Struts tag
My code:
<logic:iterate name="FDA3Form" property="dependentsInfoAl" id="element"
indexId="indexVal">
<html:text name="element" property="dependentName" size="20"
maxlength="35" indexed="true" style="display:block;"
styleId='BLABLABLA----->>><%= indexVal %><<<-----'/>
</logic:iterate>
The code within the ----->>> and <<<----- is not working. I think it
might be due to the way the tag is parsed in the JSP but does anyone
know of a way to do this.
Basically, I would like to have id='BLA1', id='BLA2' ...... in the
rendered HTML.
Harsh.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]