Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Create dynamic struts grid comboboxes
Varun Selva
Ranch Hand
Posts: 48
I like...
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I have to create dynamic
struts
grid comboboxes. I have achieved this by using below code.
Anybody suggest me any efficient way for this.
(with out using scriptlet )
public class studentForm extends ActionForm{ private vector subjectList; private String[] studentid; private String[] subject; ; ; [ Get-Set methods ] ; ; }
<logic:iterate name="studentForm" indexId="index" id="stid" property="studentid"> <%String sub="subject[" + index + "]"; %> <%String funChangename = "changename("+index+ ");"; %> <html:select property="<%=sub %>" styleClass="fld" onchange="<%=funChangename %>"> <html:options property="subjectList" labelProperty="subjectList"/> </html:select> </logic:iterate
>
Varun Selva
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Struts indexed html:select , PLZ HELP
Data Retention in JSPs
conditionally generated optionsCollection?
Getting the values of a dynamic(javascript) HTML Select
html:checkbox or html:multibox
More...