There is a method that does this conversion for you in the ServletUtil
class, but i think i encountered a problem with that. Why not simply pass
the data as a parameter . You can do that using a hidden form, setting the
parameter and then subbmiting it. This should solve all your problems since
getParameter does it all for you.
lee
[EMAIL PROTECTED]
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of pranav kumar
Sent: Monday, April 24, 2000 3:54 PM
To: [EMAIL PROTECTED]
Subject: problem with passing value througn query string
Hello Everybody,
My problem is about the value passing through the
querystring method.
For Ex.
click on the following links
1. Very Good
2. Very Bad
3. Very Nice
Now what I want that when user click on any one of the above links then
value should pass to the next page (Like 'Very Good' or 'Very Nice' or '
Very Bad').
On the next page I am using the getQueryString() method for getting the
value. But the problem is that I get the value Like ' Very%20Good'.
Is there any method or way by which I can get the original value
without '%20' it means 'Very Good' . Please give some another solution
except Java String manipulations (like substring() etc.).
Query String doesn't have a fixed format. It may contain any number of
spaces or '-' or any character.
Thanks in Advance.
With regards
Pranav
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets