Solved

JSP Problem

Posted on 2001-06-30
3
194 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
What is the compatible hibernate version for spring 4.3.1 10 64
changePi Challenge 15 77
wordlen challenge 3 49
HashMap Vs TreeMap 12 49
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now