Either I haven't been clear, or the API docs are unclear. I want to be able
to pass an arbitray number of Strings (which happen to be URLs) as
parameters to my servlet upon it's initialization, so I was thinking that I
could put all the Strings into one parameter, delimited by some character.
It doesn't look like the Encoder/Decoder can treat an array of URL's, but I
guess I'm missing the point here...
Also, I guess the Decode would be called in the servlet's init method, but
where does the Encode happen?
John Brecht
Department of Physics and Astronomy
Michigan State University
[EMAIL PROTECTED]
----- Original Message -----
From: jon * <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Monday, May 17, 1999 3:44 PM
Subject: Re: delimiters in parameters
> > One parameter with which I would like to initialize a servlet could
consist
> > of one or more URLs. So, I need to pass this list of URLs as one
parameter
> > and need some sort of delimiter to parse them up. Is there a standard
> > choice of delimiters in such a list? Obviously I can't use a comma, as
that
> > would indicate that I was specifying a new parameter. Is there some way
to
> > find out what other characters are similarly reserved in this case?
Would a
> > space work? how about a 'pipe' symbol - '|' ?
>
> why not use a urlencoded string? that way, it is simple to urldecode it
with
> the methods provided. (See: java.util.URLEncoder and
> org.apache.jserv.JServUtils.URLDecode)
>
> -jon
>
>
>
> -- --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> READ THE FAQ!!!! <http://java.apache.org/faq/>
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
>
>
-- --------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]