This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cant able to send values with % symbol between JSP pages.

 
riaz mahsha mohamed
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

the above code just takes values and sends to another jsp page that i have mention down,

i am able to receive all values except description, later i found out that because of %symbol i get description value as "null".
can any one help me to get the value of description.

for example: "you are getting 20% off on xx shoes".

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Values in URLs must be properly encoded. Use the JSTL <c:url> tag to format your URLs.
 
riaz mahsha mohamed
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have value in DB like " you get 40% off on every product of x". if i remove the % symbol i am able to retrieve " you get 40 off on every product of x" . where should i change in the first JSP page that i have mentioned. i am new to JSP.
 
riaz mahsha mohamed
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please can any one help me to get rid of this issue.
 
Ashish Mondal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
riaz mahsha mohamed wrote:please can any one help me to get rid of this issue.


The below example will help you to understand

<htmlption value="40%25 Off">40% Off</htmlption>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic