> So, I would write an app that does the Encode, run it on the URLs I want to
> include, Serialize the result and save it to a file, and put a pointer to
> that file in the parameters section of the zone.properties file?  Please
> explain.

Sure, that sounds like a good idea. or even easier, write a program that
does a System.out.println of the encoded string urls and that data is then
copy/pasted into your .initArgs file or placed into the properties file for
that zone.

String url1 = "http://www.clearink.com/";
String url2 = "http://www.working-dogs.com/";
System.out.print( java.net.URLEncoder.encode("url=" + url1) + "&" +
java.net.URLEncoder.encode("url=" + url2) );

With the above example in mind, now all you have to do is run
org.apache.jserv.JServUtils.URLDecode() to get a Hashtable. That Hashtable
will have a key of "url" which is a String[].

Or, you can get more complicated and write the URL's in an XML with a DTD
and use www.openxml.org's parser to create XML model that you can loop over.
But, that seems like a lot of extra work to me.

-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]

Reply via email to