Yah that's right. It should solve your problem.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Geeta Ramani
Sent: Tuesday, March 05, 2002 11:59 PM
To: [EMAIL PROTECTED]
Subject: Re: URL

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