This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes how to load select options using jstl with selected and disabled Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to load select options using jstl with selected and disabled" Watch "how to load select options using jstl with selected and disabled" New topic
Author

how to load select options using jstl with selected and disabled

rajiv jackz
Greenhorn

Joined: Jul 12, 2010
Posts: 29
i just want load select options using jstl in jsp .
but condition is
1) category have many products
so category must be disabled,
2) one specific category must be set on top index


I have category and product as list available in jsp
eg: category1
product1
product2
category2
product1
product2

Any other way is there without using jstl
please help me out here!
thanks in advance
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

What's wrong with using JSTL? It's a standard part of JSP. You probably need to be filtering in the servlet to get the defaults as well.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
jQuery in Action, 2nd edition
 
subject: how to load select options using jstl with selected and disabled
 
Similar Threads
Beginner Java Question
Sorting arrays
about inner join and inner join fetch again
dynamic list - javax.el.PropertyNotFoundException
Correlation in SQL to distinguish tables