Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: getParameter can't recongize


Message #1 by Liming Xu <lxu@t...> on Mon, 16 Jul 2001 17:00:24 -0400
Read carefully, I said  "java.net.URLEncoder.encode(String str)", but not
"response.encodeURL " which have differant funkcionality.


----- Original Message -----
From: Liming Xu <lxu@t...>
To: Pro_JavaServer_Pages <pro_jsp@p...>
Sent: Tuesday, July 17, 2001 1:27 PM
Subject: [pro_jsp] Re: getParameter can't recongize


> Gi, I tried both response.encodeURL and response.encodeRedirectURl, the
> result is, IE always work, but in Netscape, it never works...any ideas?
> thanks
>
>
>
> -----Original Message-----
> From: Ljubisa Kovacevic [mailto:LubisaK@H...]
> Sent: Tuesday, July 17, 2001 3:33 AM
> To: Pro_JavaServer_Pages
> Subject: [pro_jsp] Re: getParameter can't recongize
>
>
> You can find more in java tutorial and I beleive in Pro JSP, but short
> answer is :
> before you write any string as a part of URL you got to encode it (as you
> have seen in your browser), and java provide class for that job.
> So your string could look like
> URL = "mypage.jsp?name=" + java.net.URLEncoder.encode(Internt 10 minutes)
>
>
>
> ----- Original Message -----
> From: Liming Xu <lxu@t...>
> To: Pro_JavaServer_Pages <pro_jsp@p...>
> Sent: Monday, July 16, 2001 2:00 PM
> Subject: [pro_jsp] getParameter can't recongize
>
> > > in my url, i have  mypage.jsp?name=Internt 10 minutes... it gets
> converted
> > > in browser to mypage.jsp?name=Internet%2010%20minutes.
> > >
> > > in mypage.jsp, when I getParaemter("name"), all I get is
Internet......
> > > because %20 is space..but in this speical case, the url has a %2010,
so
> > > getParameter()
> > > can't recongize the rest of the stuff...anyway around this? thanks..
>
>
>

  Return to Index