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
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Struts
How to use JSTL in Struts
Krishna Chhabra
Greenhorn
Posts: 9
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I am new to
struts
and JSTL.
I am using struts 1.2 and JSTL 1.1
I want to populate combo box in struts with help of JSTL
Below is the code:
<html:select disabled="disabled" property="populateData"> <c:forEach var="populateData" items="${cityValue}" > <html :-o ption value="${populateData.key}" /> </c:forEach> </html:select>
In above code inspite of printing the value of
populateData.key
, it is printing this as a text.
Please tell me that where i am wrong.
Thanks
Krishna
Jaap v Hengstum
Greenhorn
Posts: 6
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What Struts tag libraries are you using and what Servlet/JSP container? If you're using a
Servlet
2.3/JSP 1.2 container or lower, you need to use the
Struts-EL tags
instead of the normal Struts tags.
Dom Lassy
Ranch Hand
Posts: 181
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Add this to the top of the
jsp
:
<%@ page isELIgnored ="false" %>
Dinner will be steamed monkey heads with a side of tiny ads.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSTL conversion for struts 1.1 code
struts and jstl html:option
unable to update Div tag.
JSTL vs struts tag
Struts tags and JSTL
More...