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
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer (Exam 1Z0-830) Java SE 17 Developer (Exam 1Z0-829) Programmer’s Guide
this week in the
Programmer Certification
forum!
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:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Struts
Migrate Struts 1 dropdown to struts 2
Happy S Singh
Ranch Hand
Posts: 58
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What are the possible ways to convert below
struts
1 code to migrate in struts 2. I know s:select tag but how to integrate c:foreach jstl in that?
<html:select property="activite" onchange="setActivite(form);" style="width:45px"> <html:option value=""><s:text name="form.date.jour" /></html:option> <c:forEach items="${jour}" var="varJour"> <c:if test="${not (varJour eq form.activite)}"> <option value="<c:out value="${varJour}"/>"><c:out value="${varJour}"/></option> </c:if> <c:if test="${varJour eq rechercheUtilisateurForm.jourFinActivite}"> <option selected value="<c:out value="${form.jactivite}"/>"><c:out value="${form.jourFinActivite}"/></option> </c:if> </c:forEach> </html:select>
Joe Ess
Bartender
Posts: 9626
16
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The select tag takes a list argument. There's no need to iterate through the options.
See the documentation
[
How To Ask Questions On JavaRanch
]
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSTL eq condition
Iterating <c:foreach> to get values from sublist
$ is not working inside <html:option> tag of struts 1.2
JSTL conversion for struts 1.1 code
Validation for the Indexed properties dynamic fields in struts (JSP)
More...