473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Dropdown Box with Multiple Choices

12
I am sure there must be an easy answer to this, but I can't find it.

I have to process a form where people can request information on one or more communities from a drop-down box. I bring the information into a java servelet to process. I get the data using:

request.getParameter("firstName")

However request.getParameter("communityName") only brings me back the first community they select.

How do I get the other choices?


On a previous posting it was suggested that the developer use a list box. Unfortunately I don't design the page, I am handed a page and told to make it work. If all goes well, the designer gets the credit, if something goes wrong, I get the blame. ;-) I am sure I am not the only one in this boat.

Thanks in advance for your help.

Brita
Oct 5 '07 #1
1 1652
r035198x
13,262 8TB
I am sure there must be an easy answer to this, but I can't find it.

I have to process a form where people can request information on one or more communities from a drop-down box. I bring the information into a java servelet to process. I get the data using:

request.getParameter("firstName")

However request.getParameter("communityName") only brings me back the first community they select.

How do I get the other choices?


On a previous posting it was suggested that the developer use a list box. Unfortunately I don't design the page, I am handed a page and told to make it work. If all goes well, the designer gets the credit, if something goes wrong, I get the blame. ;-) I am sure I am not the only one in this boat.

Thanks in advance for your help.

Brita
For a multiple select, use
Expand|Select|Wrap|Line Numbers
  1. request.getParameterValues("selectName");
Oct 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jas | last post by:
I want an ASP page with a dropdown and a simple button. Every time the user chooses an item from the dropdown and clicks on the button i want that value written below in list and allow user to...
20
by: Dannyboyo | last post by:
I have what I hope is a simple request. I can't really code in javascript, but I am pretty good at cusomizing it with slight modifications. I code in ASP and HTML. I am trying to capture customer...
1
by: Mike Collins | last post by:
I am writing an ASP.Net application in C#, and am not sure if this C# newsgroup is the correct one to ask in, but I do not see an ASP.Net newsgroup. But I would like to add dropdowns to my webpages...
2
by: Lair | last post by:
I am creating a page that has three to four databound dropdown lists. Each one is has different data sometimes from the same table but with a different where clause. What is the best way to...
2
by: Jason James | last post by:
Hi, I have a datalist that contains a series of thumbnails. I am in the process of paging this datalist so that only 20 images are displayed at a time. Each image has associated with it a...
0
by: cindy | last post by:
I have a dynamic datagrid. I have custom classes for the controls public class CreateEditItemTemplateDDL : ITemplate { DataTable dtBind; string strddlName; string strSelectedID; string...
2
by: Trailer | last post by:
Hello guys, this is my first post here. I tried searching for the answer, but I found out pretty quickly that I wouldnt find the perfect answer. I am pretty new to programming, but Im taking a class...
3
by: fish919 | last post by:
Hello All, I am creating a date base in access. I want to create a dropdown list box that is connected to another dropdown list box. You start with a dropdown list that has 5 choices and each of...
6
by: phpnewbie26 | last post by:
My current form has one multiple select drop down menu as well as few other drop down menus that are single select. Originally I had it so that the multiple select menu was first, but this created...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.