I would like to be able to pass a list of parameters of arbitrary size to a
servlet.  The syntax for passing parameters via a properties file is:

Syntax: servlet.[classname].initArgs=[name]=[value],[name]=[value],...

This syntax requires you to have a different name for each parameter, so it
can't be of arbitrary size.  So what I need to do is have a safe delimiter
character, for instance "&", that my servlet can use to parse a single
string parameter into the list of parameters it represents.  Is the
ampersand (&) a safe choice as far as JServ is concerned?  Is there a better
choice?

(My specific situation is that I would like to have my servlet be able to
instantiate Classes given Strings passed to them by a client applet.  This
will be done using the URLClassLoader, which in turn needs a classpath to
hunt for classes within.  It would be nice to pass this classpath, which may
consist of more than one URL, via the servlet parameters.  That way, if I'm
just changing the directory structure of my server a bit I don't have to
recompile a bunch of applets and servlets.  Instead, I just make the changes
in the appropriate properties file.)

---
John Brecht
Department of Physics and Astronomy
Michigan State University




----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to