This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Selecting Multiple Options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Selecting Multiple Options" Watch "Selecting Multiple Options" New topic

Selecting Multiple Options

Raza Khan

Joined: Nov 19, 2008
Posts: 15
Hi All,
I have made a JSP form with select options that selects all mobile brands like Nokia, LG, Motorola,etc. from the drop-down list. But how do i make an option where all brands are selected at once and result is printed for all the brands from the database.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32635

How about an all option? It could have a special value which your action interprets to mean all the values in the list.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Selecting Multiple Options
It's not a secret anymore!