Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Jinal Prakas Shah
Joined: Jun 20, 2012
Jul 17, 2012 16:43:30
I have a very simple question. I'm writing this iteration code. Here is the code
<select multiple="multiple" id="regionstate" name="state"> <s:iterator value="region" status="regionStatus"> <optgroup label="<s:property value="name" />"> <s:iterator value="states" status="stateStatus"> <option value="<s:property value="id" />"><s:property value="name" /></option> </s:iterator> </optgroup> </s:iterator> </select>
I have a
variable named myStates which contains the stateid which is the same Id above. Now if that id occurs in the
what I want is to show it selected. Can you tell me How to do this?
I agree. Here's the link:
subject: Dropdown Selected
passing hidden value to action class in struts-2
object cascading in a template
Struts 2 Aggregated Lists and Select Boxes
spaces while populating using s:iterator
select tag doubt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013