• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL Drop Down

 
Noel Balderaz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need help getting a jstl drop down to work. I have found many examples and I am doing what is shown but I can't get it to work. I have made standard-1.1.2.jar and jstl-1.2.jar available to my application. I believe jstl is working because in my testDropDown.jsp I use and that works and I know the bean is working because I use the bean to display a message and thats working. The only thing that shows up in the drop down is ${items}.

Here is the jsp and java file I am using:

testDropDown.jsp


ListBean.java
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can see from that example that JSTL is working but EL is not. (Your bare "${item}" which is not inside a JSTL tag is an example of EL.)

So you need to check that the configuration of your web application is such that EL is supported.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the JspFaq.
 
Noel Balderaz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys I should be able to figure out what the issue is now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic