Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


doPost and select menu's

Posted on 2004-10-26
Medium Priority
Last Modified: 2013-11-24
I have a java servlet that i post a form to. On the form, I have a select menu (non-multiple).

How do i access all of the options that are in that select menu? The request object only contains the currently selected option.

Any help/suggestions/comments would be greatly appreciated.


Question by:michaelmwilson1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

kiranhk earned 100 total points
ID: 12415163
you need to use javascript to append all the options to the URL(if you dont want to store the options in the session or in a bean). The browser always sends only the selected options.
LVL 86

Expert Comment

ID: 12415491
>>How do i access all of the options that are in that select menu?

Why would you want to if only one is selected?
LVL 92

Assisted Solution

objects earned 100 total points
ID: 12416575
> How do i access all of the options that are in that select menu?

You cannot access them from the request, but as you created the menu in the first place you should already know them.
If you are using JSP, you could store the menu options in your session when you create it.

Expert Comment

ID: 12498202
did you find any of the suggestions useful?? havent heard from you for a long time

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question