File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Storm Applied this week in the Other Open Source APIs 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: 31824

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Selecting Multiple Options