Hi I'm iterating over a list in my jsp. The relevant code looks like;
<s:iterator status="blockStatus" value="blocks" var="block"> <s:select label="blocks[%{#blockStatus.index}].name" name="blocks[%{#blockStatus.index}].value" list="%{blocks[#blockStatus.index].options}" listKey="value" listValue="text"> </s:select> </s:iterator> The select box displays correctly populated, but I cannot get the label to display! I've tried the above code and I've tried label="%{blocks[#blockStatus.index].name}" which doesn't work either. I've stuck a System.out.println in my getName() method and with both examples, the getName() method on my block class get called and return the correct value. What on earth am I doing wrong? Regards -- View this message in context: http://old.nabble.com/Syntax-problem%3A-Trying-to-display-label-for-Select-while-iterating-tp28175030p28175030.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org