Solved

JSP Problem

Posted on 2001-06-30
3
199 Views
Last Modified: 2010-04-16
Hi Guys,
How to access muliptle data or data save in database from Drop Down Menu Multiple List. and i am using JSP, SQL Server 7.0 and webserver Tomcat.
I make a one form and use a text box, select menu and Multiple select menu. But i face a problem in accessing muliple data from multiple select list(drop down menu).
and i get a only one data(frist item) from multiple list (drop down menu).
pls. give me solutions.
bye
0
Comment
Question by:raj_expert
[X]
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
3 Comments
 
LVL 12

Accepted Solution

by:
ahosang earned 100 total points
ID: 6240455
It is hard to know what you're trying to do without code, but I'll guess you need to retrieve the array of values from the multiple list rather than just one.
  What you must do for the multiple list is use the getParameterValues method like so:

String[] multipleValues=request.getParameterValues("multiSelectName");

This gives you an array for you to parse in your own way.
0
 
LVL 1

Expert Comment

by:kvkamesh
ID: 6244599
HI
please type "multiple"
<select name="dropdown" size="10" multiple onChange="selectFields()">
<option>kamesh</option>
<option>kamesh1</option>
<option>kamesh2</option>
</select>
so that you can select the multiple data.
If you are not getting i will send you full code
bye
kamesh
0
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 8950548


No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


--  points to ahosang


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
java example issue 5 46
maven not picking latest jar instead picking old jar from .m2 12 50
What browser will run Java? 7 128
How to log java errors in tomcat 8 24
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

730 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