File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes How to use JSTL in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to use JSTL in Struts" Watch "How to use JSTL in Struts" New topic

How to use JSTL in Struts

Krishna Chhabra

Joined: May 15, 2007
Posts: 9

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:

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.

Jaap v Hengstum

Joined: Apr 25, 2007
Posts: 6
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

Joined: May 05, 2006
Posts: 181
Add this to the top of the jsp:
<%@ page isELIgnored ="false" %>
I agree. Here's the link:
subject: How to use JSTL in Struts
It's not a secret anymore!