This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes cant able to send values with % symbol between JSP pages. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "cant able to send values with % symbol between JSP pages." Watch "cant able to send values with % symbol between JSP pages." New topic
Author

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

riaz mahsha mohamed
Greenhorn

Joined: Aug 18, 2010
Posts: 16

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

Joined: Jan 10, 2002
Posts: 60810
    
  65

Values in URLs must be properly encoded. Use the JSTL <c:url> tag to format your URLs.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
riaz mahsha mohamed
Greenhorn

Joined: Aug 18, 2010
Posts: 16
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

Joined: Aug 18, 2010
Posts: 16
please can any one help me to get rid of this issue.
Ashish Mondal
Greenhorn

Joined: Nov 03, 2010
Posts: 1
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>
 
jQuery in Action, 2nd edition
 
subject: cant able to send values with % symbol between JSP pages.
 
Similar Threads
request parameter set in html:link showing the classname instead of value
struts html:link not working with portlet
Double action call when scriptlets in iterate tag
Inserting a checkbox value into database.
how to handle multiple iterates for the code