It is not allowed to have just part of attribute value as JSP expression. Here is the correct solution: <html:text name="iType" styleId="<%="sp" + iterator%>" property="sharesPer"/>
Peace, Aidas sachin <[EMAIL PROTECTED]> wrote: > I have a jsp page in which i have a loop and a text field inside it. > Now to create a dynamic styleid i have used the following code.. > > but when this code executes , it does not print the actual value of itrator . > It should give styleId="sp0" , styleId="sp1" , styleId="sp2" likewise .. > but it prints simply ' styleId="sp<% = itrator %>" ' for all the fields . > > can someone provide a solution to create dynamic styleId ... ? > > <% int itrator=0; %> > <logic:iterate id="iType" property="investorTypeList" name="sharePatternBean"> > <html:text name="iType" styleId="sp<% = itrator %>" property="sharesPer" > readonly="true" /> > <%itrator++;%> > </logic:iterate> > > Regards, > Sachin Hegde, > Software Developer, > Paradyne Infotech Limited, > Mumbai > 022-38546711 > > --------------------------------------------------------------------- > 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]