Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
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
spaces while populating using s:iterator
passing hidden value to action class in struts-2
select tag doubt
Struts 2 Aggregated Lists and Select Boxes
object cascading in a template
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015