On Fri, 12 Jan 2001, LouisVoo wrote:
> I also try like this
> URL url = new URL(URLEncoder.encode(_url));
> but it also failed.
>
> Anyone know how to solve my problem?
Try this:
URL url = new URL("http://foo.com/xyzzy?"+URLEncoder.encode("id=324"));
In other words, you should encode ONLY the query string part.
//Mikko
- Re: class cast exception Santosh Kumar
- How to use jikes compiler? LouisVoo
- Re: How to use jikes compiler? Guilherme Ceschiatti
- Re: How to use jikes compiler? Mike Clark
- Re: class cast exception Sven van 't Veer
- Re: class cast exception Marcus Lankenau
- Re[2]: class cast exception Rafael Alvarez
- File Upload Servlet Seung Bang
- Re: File Upload Servlet Seung R. Bang
- URLEncoder help pls! LouisVoo
- Re: URLEncoder help pls! Mikko Kurki-Suonio
- Re: URLEncoder help pls! LouisVoo
