Vikas:

Use the foll. class: java.net.URLEncoder (as well as java.net.URLDecoder).

Regards,
Geeta
 

Vikas Gupta wrote:

It still does not work.
as It just replaces space with + sign.

The problem is # is treated as anchor sign in URL and we have to espace it.

Thanks
Vikas

        -----Original Message-----
        From: Chandrasekaran, Meera [mailto:[EMAIL PROTECTED]]
        Sent: Tue 3/5/2002 1:07 PM
        To: [EMAIL PROTECTED]
        Cc:
        Subject: Re: URL
 
 

        Vikas,
        you forgot to encode the URL!

        -----Original Message-----
        From: Vikas Gupta [mailto:[EMAIL PROTECTED]]
        Sent: Tuesday, March 05, 2002 1:05 PM
        To: [EMAIL PROTECTED]
        Subject: URL
 

        Hi,

        I am trying to read the following URL:

        http://www.abc.com?name=parm1&address=Street # 14&state=AB

        request.getParameter for address return back "Street" instead of "Street #
        14".

        Any Sugesstions??

        Thanks
        Vikas
        N rzǧué� [h+-
        Ú²
        fv)Ü�^{ayå�º Ê�Í�Æ zÈ HDU,Dã� 51 $-b鯽!å´¶ j+Þ²6j˧rj!ǬǫW{^-é¯�E(캷 mjw(à°�k鵡 zzâ�³ ׫kz.娭Ǭ٥,HDU
        ià �i0[(~ç��(á��zä ¿

        ___________________________________________________________________________
        To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
        of the message "signoff SERVLET-INTEREST".

        Archives: http://archives.java.sun.com/archives/servlet-interest.html
        Resources: http://java.sun.com/products/servlet/external-resources.html
        LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
 
 

N�§²æìr¸�zǧué� [h�+-±êï�«Ú²éÜ¢f§v)Ü�ç^ {ayº Ê�í�é�²Æ zÈ ��ßHDU,DÈ51 $À­Èb½ë!¶Ú ýªÜ�+Þ²6¯j˧r�¿j·! ÷¬þÇ«¾W­ {^­ë-�Ù¥Eë(º· ² m§ÿãjö¬ºw(�úk¡Û�¶Ïìz»åzßÞÆ×«�©kzÊ.­Ç¬�Ù¥,��HDU éi�Ûiÿü0Â[(~×(�ù��楳û¬z¿î±êátml=

Reply via email to