This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes optgroupt inside a logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "optgroupt inside a logic:iterate" Watch "optgroupt inside a logic:iterate" New topic
Author

optgroupt inside a logic:iterate

fabrizio bellomo
Greenhorn

Joined: Jul 07, 2011
Posts: 3
Good Morning ,
i need your help^^"

how can i use <optgroup label="title" inside a logic:iterate??

That's my problem.. i have this

<select name="scelta" class="size" onChange="javascript:setIdArea(this);">

<logic:iterate id="CreaGrigliaAttivitaForm" name="elenco" >

<option value='<bean:write name= "CreaGrigliaAttivitaForm" property="idatt"/>'>
<bean:write name= "CreaGrigliaAttivitaForm" property="idatt"/>-
<bean:write name= "CreaGrigliaAttivitaForm" property="nomeatt"/>-
<bean:write name= "CreaGrigliaAttivitaForm" property="status"/>
</option>

</logic:iterate>

</select>

but if i put the <optgroup label=" <bean:write name= "CreaGrigliaAttivitaForm" property="status"/>"> before the logic:it, i can see the title only at the beginning. If i put the tag after, i can see the title in all the information.

I want to order the informations for status. Any suggestion??

Thanks in advance

F
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: optgroupt inside a logic:iterate
 
Similar Threads
doubt regarding dropdown list
bean:write, with PRE in OPTION tag
Logic iterate problem
Logic iterate
logic:match , logic:notEqual not working