• Post Reply Bookmark Topic Watch Topic
  • New Topic

Get rid of white spaces in jsp

 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
am sending somevalues to server through query string. When server wants to retrieve that value it is replacing the whitespace with %20. How this problem will be solved?

thanks
indu
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's supposed to do that. When you retrieve the value with request.getParameter(), the space will be restored.
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But, am appending the value in javascript as
window.location.href = "myjsp.jsp?+somex". and am getting the value of somex through request.getQueryString() .. is there any way to get "somex" value otherthan queryString() ?

thanks
indu
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by indu yeturu:
But, am appending the value in javascript as window.location.href = "myjsp.jsp?+somex".

Why are you not use name/value pairs like everyone else?
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok,
Thank You Bear
indu
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!