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

JSTL Drop Down

Noel Balderaz

Joined: Mar 09, 2012
Posts: 3
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:

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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

Joined: Jan 10, 2002
Posts: 63865

See the JspFaq.

[Asking smart questions] [About Bear] [Books by Bear]
Noel Balderaz

Joined: Mar 09, 2012
Posts: 3
Thanks guys I should be able to figure out what the issue is now.
It is sorta covered in the JavaRanch Style Guide.
subject: JSTL Drop Down
jQuery in Action, 3rd edition