Re: Servlet setup question

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 UTC