?
Solved

Getting selected drop down list box value

Posted on 2003-03-22
4
Medium Priority
?
199 Views
Last Modified: 2010-04-07
Hi,

I had a drop down list box in jsp which values are by calling a function which will return me the values from the database for the user to choose. Then when the user selected a value from the drop down list box and click on a hyperlink i need to pass this value to a java form. I had try using request.getParameter("drop down list box name") but it return a null to me.

How do i get the selected value in the java form?
0
Comment
Question by:zchenxin
[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
4 Comments
 
LVL 3

Accepted Solution

by:
ignacioperez earned 150 total points
ID: 8187059
When you write a "select" tag in HTML, the name for the field is the name of the select tag, and the value returned is the value property (not the text) of the option.

I hope this helps.
0
 

Author Comment

by:zchenxin
ID: 8192949
Hi,

What I mean is how to actually pass the value of the drop down box to a hyperlink. Take for example u had a text box name orgNo how u pass it to the hyperlink?

String params[] = new String[] {IULinkContext.USER_ID+"="+userId, "orgNo="+orgNo , "caseOpt="+caseOpt, "caseType="+caseType};

<a href="<%=HtmlUtil.getURL(request.getContextPath(), "CasesCtrl", "getOrg", params)%>" target="_blank"><img src="<%=request.getContextPath()%>/image/mag.gif" width="12" height="12" border="0"></a>

Your help would be greatly appreciated
0
 

Expert Comment

by:CleanupPing
ID: 8531828
Hi zchenxin,
This old question (QID 20559621) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
 
LVL 6

Expert Comment

by:GPrentice00
ID: 8958728
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:

-->Delete - with points refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

GPrentice00
EE Cleanup Volunteer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

770 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