Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing variables from a drop down menu to response.encodeUrl

 
Sanz Joanne
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
post your code.
--
rudolf-if you think your nick is funny-you are wrong.
so better change it.
 
Geeta Ramasami
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How r u retrieving ur value of selectSize form ur drop down menu?
Cheers
Geeta
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic