Link to home
Start Free TrialLog in
Avatar of zchenxin
zchenxin

asked on

Getting selected drop down list box value

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?
ASKER CERTIFIED SOLUTION
Avatar of ignacioperez
ignacioperez

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zchenxin
zchenxin

ASKER

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
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.
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