struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaudhary, Harsh" <HCHAU...@amfam.com>
Subject RE: Scriptlets in Struts tag
Date Tue, 27 Feb 2007 18:40:15 GMT
I tried that. But in the HTML rendered, the id attribute is rendered as:

id='BLABLA<%=indexVal.intValue()%>'

Harsh.

-----Original Message-----
From: Nuwan Chandrasoma [mailto:mymailnot@gmail.com] 
Sent: Tuesday, February 27, 2007 6:09 PM
To: Struts Users Mailing List
Subject: Re: Scriptlets in Struts tag


hi,

try this code.

<%=indexVal.intValue()%>

Regards,

Nuwan.

----- Original Message ----- 
From: "Chaudhary, Harsh" <HCHAUDHA@amfam.com>
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message