W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1996

Re: Filter question/problem

From: Pasquale Di Feo <pasdif@netfly.it>
Date: Fri, 09 Aug 1996 22:29:47 +0200
Message-ID: <320B9FBB.4762@netfly.it>
To: Jeff Dripps <jeff@macalot.com>
CC: www-jigsaw@w3.org
Jeff Dripps wrote:
> 
> Hi folks,
> 
> I wrote a really simple filter that I thought would be great for end users
> configuring Jigsaw. It's purpose was to eliminate having to hand type many
> of the admin URLs discussed in the configuration tutorials. It's goal was
> to replace embedded tags with the users actual host name and port number in
> any html document the filter was applied to. For example in the
> configuration.html example below, the tag <!--your.host.name--> is
> replaced, resulting in the ability to just click the link to configure
> rather than copy/paste it in.

Very good.

Your code is very similar to my ImageCountFilter. You can see the code
at
address http://www.netfly.it:8080/Extents/src/ImageCountFilter.java

If the next tag is into same line, don't work becouse the following code 
test for one tag for line

while ((strTmp = ds.readLine()) != null) {
   //  System.out.println(strTmp);


   // test if the line contains URL_TAG
   if ((nPos = strTmp.indexOf(URL_TAG)) != -1) {
       System.out.println("host tag found");

       // replace the tag with host info
       strTmp = insertURL(request, strTmp, nPos);
   }

...
...

Loop on line for test other tags


Regards
Pasquale
Received on Friday, 9 August 1996 16:29:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT