Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use JSTL in Struts

 
Krishna Chhabra
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:



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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add this to the top of the jsp:
<%@ page isELIgnored ="false" %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic