W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 2005

Re: Servlet setup question

From: Yves Lafon <ylafon@w3.org>
Date: Wed, 23 Feb 2005 11:24:42 +0100 (MET)
To: "Laird, Brian" <BLaird@perseco.com>
cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.62.0502231119420.295@gnenaghyn.vaevn.se>
On Tue, 22 Feb 2005, Laird, Brian wrote:

> How do I configure a servlet in Jigsaw to listen on a specific
> extension?  This extension will not be mapped to any physical file on
> the disk.  My example is that I want to have a servlet listen in a
> specific directory for anything with .flow at the end.  Is this possible
> and how would I go about doing it?  In that same directory, I will
> probably have some images and static files.

It is easy to do in the Jigsaw framework, but I don't know how to do that 
with servlets.
The way to do this in Jigsaw is to overload the "lookup" method of a 
resource or a frame.

If your .flow are linked to existing files, the ServletMapperFrame on top 
of a FileResource is the way to go (much like jsp, it delegates everything 
to a servlet with the path of the .jsp given to the servlet, see [1])
It might work without any physical file on the disk if you replace the 
FileResource by a FramedResource which is only virtual.
Thanks,

[1] http://www.w3.org/Jigsaw/Doc/User/jsp.html

  >
>
>
> Thanks in advance,
>
> Brian
>
>
> ************************************************************************
> This e-mail and any accompanying documents or files contain information that is the
> property of Perseco, that is intended solely for those to whom this e-mail is addressed
> (i.e., those identified in the "To" and "Cc" boxes), and that is confidential, proprietary,
> and/or privileged.  If you are not an intended recipient of this e-mail, you are hereby
> notified that any viewing, use, disclosure, forwarding, copying, or distribution of any of
> this information is strictly prohibited and may be subject to legal sanctions.  If you have
> received this e-mail in error, please notify the sender immediately of any unintended
> recipients, and delete the e-mail, all attachments, and all copies of both from your system.
>
> While we have taken reasonable precautions to ensure that any attachments to this e-mail
> have been swept for viruses, we cannot accept liability for any damage sustained as a
> result of software viruses.
> ************************************************************************
>

-- 
Yves Lafon - W3C
"Baroula que barouleras, au tiéu toujou t'entourneras."
Received on Wednesday, 23 February 2005 10:25:17 GMT

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