Using '%' in the URL for METHOD = "GET"

Hi,

I have a html sample which accepts 3 text values and a submit button as given below.

<html>

<body>

<form name="f1" mehtod="get" action="someURL">

<input type="text" name="t1">

<input type="text" name="t2">

<input type="text" name="t3">

<input type="submit" name="b1" value="submit">

</form>

</body>

</html>

if i enter data like "75%" into any of the TextBox, the get parameter contains the "%".

But when a retrieve the same in a SERVLET, using getParameter("...")

the data which contains "%" is not retrieved.

URL treats "%" as a special character and omits the same.

I need to get the complete value which contains either + or % or ....etc

How do i solve this problem.

Please help

- Raju

[878 byte] By [vijay_krishnam_rajua] at [2007-10-3 3:55:48]
# 1
% is a special character in URLs: see the RFC. It is used as an escape character to introduce the hex code of characters which are otherwise illegal in URLs. % is one of those characters of course. Have a look at java.net.URLEncoder.
ejpa at 2007-7-14 21:53:57 > top of Java-index,Core,Core APIs...