File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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?
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Dropdown Selected
object cascading in a template
passing hidden value to action class in struts-2
select tag doubt
spaces while populating using s:iterator
Struts 2 Aggregated Lists and Select Boxes
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014