> Dear all,
> Is anybody can help me by giving me an explanation about encodeURL in
jsp:
> 1. When i have to use it?

when u've tu pass parameters using the get method and those parameters
contain special characters (+, &, @, blank spaces, ...). It converts
those chars into special substrings allowed by the MIME format.

> 2. How to use it?

public class URLEncoder
extends Object
The class contains a utility method for converting a String into a MIME
format called "x-www-form-urlencoded" format.

To convert a String, each character is examined in turn:

The ASCII characters 'a' through 'z', 'A' through 'Z', '0' through '9',
and ".", "-", "*", "_" remain the same.
The space character ' ' is converted into a plus sign '+'.
All other characters are converted into the 3-character string "%xy",
where xy is the two-digit hexadecimal representation of the lower 8-
bits of the character.


SEE ALSO: URLDecoder.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to