aspose file tools*
The moose likes JSP and the fly likes Passing variables from a drop down menu to response.encodeUrl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Passing variables from a drop down menu to response.encodeUrl" Watch "Passing variables from a drop down menu to response.encodeUrl" New topic
Author

Passing variables from a drop down menu to response.encodeUrl

Sanz Joanne
Greenhorn

Joined: Feb 24, 2003
Posts: 8
Can anybody please help me....
I'm trying to pass a variable from a drop down menu to response.encodeURL
I tried using:
<%= response.encodeUrl("Merchandise.jsp?Clothing_id="+Clothing_id+"&Clothing_Type="+Clothing_Type+"&SelecltSize="+SelectSize+"&Clothing_Colour="+Clothing_Colour+"&Clothing_Price="+Clothing_Price+" ")%>
Select Size being the variable in the drop down menu. The thing is it keeps passing a null value.
Thanks a mill in advance
Sanz
rudolf hitler
Ranch Hand

Joined: Feb 07, 2003
Posts: 34
hi,
why dont u place the form in a html page and use javascript to pass the url to ur destination page.In javascript u can use the escape(variable)
function to encode url which automatically gets decoded at ur destination.
Asher Tarnopolski
Ranch Hand

Joined: Jul 28, 2001
Posts: 260
post your code.
--
rudolf-if you think your nick is funny-you are wrong.
so better change it.


Asher Tarnopolski
SCJP,SCWCD
Geeta Ramasami
Ranch Hand

Joined: Mar 05, 2003
Posts: 72
Hi,
How r u retrieving ur value of selectSize form ur drop down menu?
Cheers
Geeta
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing variables from a drop down menu to response.encodeUrl