----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
> Hello and happy new year
happy new year ...
> Some characters like <white spaces> are not allowed in URL (servlets
> parameters).
>
> Is there any method to encode the URL for fixing this problem ?
import java.util.*;
encodedString = Encoder.encode("something with strange characters");
The req.getParameter() would decode it automatically if it is a parameter
in the path. DO NOT encode the whole URL, only encode the part that
contains "illegal" characters!
Michael
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]