Shashank Phadke wrote:

> Jie --
>
> If you are parsing thru servlets, have a look at the getParameter,
> getParameterNames, getParameterValues methods in the HttpRequest interface.
> Implementations of these in your webserver / servlet engine should give you
> the values as you want ..
>
> For non-servlet solutions, I guess you will have to sift thru the query
> string and replace those special chars and build your hashtable.
> You can call it URLDecoder missing out of java.net package ;-)
>
> Shashank
>

If you want to parse it yourself, is there some reason that
HttpUtils.parseQueryString() does not satisfy this requirement?

Craig McClanahan


>
> >From: Jie Zhang <[EMAIL PROTECTED]>
> >Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> >        Servlet API Technology." <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: phasing query string
> >Date: Sat, 28 Aug 1999 17:31:42 -0700
> >MIME-Version: 1.0
> >From [EMAIL PROTECTED] Sat Aug 28 17:42:29 1999
> >Received: from [204.160.241.28] by hotmail.com (2.1) with ESMTP id
> >MHotMailB991CCC801BDD820F39ECCA0F11CC4041; Sat Aug 28 17:42:29 1999
> >Received: from mail (mail.java.sun.com [204.160.241.28])by
> >mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA04325;Sat, 28 Aug 1999
> >17:43:01 -0700 (PDT)
> >Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
> >with          spool id 520175 for [EMAIL PROTECTED]; Sat, 28
> >Aug 1999          17:42:52 -0700
> >Received: from shell8.ba.best.com (shell8.ba.best.com [206.184.139.139]) by
> >          mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id RAA03547 for
> >       <[EMAIL PROTECTED]>; Sat, 28 Aug 1999 17:32:51 -0700
> >(PDT)
> >Received: (from jie@localhost) by shell8.ba.best.com (8.9.3/8.9.2/best.sh)
> >id          RAA15460 for [EMAIL PROTECTED]; Sat, 28 Aug 1999
> >17:31:43          -0700 (PDT)
> >X-Mailer: ELM [version 2.4ME+ PL38 (25)]
> >Message-ID:  <[EMAIL PROTECTED]>
> >Sender: "A mailing list for discussion about Sun Microsystem's Java
> >      Servlet API Technology." <[EMAIL PROTECTED]>
> >
> >Hi,
> >
> >
> >I am looking for a java library which could phase query string for me. e.g.
> >return pairs of variable name and value.   Does anybody know where to find
> >it ?
> >
> >Thanks in advance,
> >
> >Jie
> >
> >___________________________________________________________________________
> >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
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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

Reply via email to