Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Getting selected drop down list box value

Posted on 2003-03-22
4
Medium Priority
?
202 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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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
Course of the Month13 days, 2 hours left to enroll

579 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