File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 61449
    
  67

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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cant able to send values with % symbol between JSP pages.