wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
Consider Paul's rocket mass heater.
 
subject: optgroupt inside a logic:iterate