Connor

To get pointed in the right direction, take a look at 

org.apache.tapestry.internal.services.StaticFilesFilter


It sounds like Tapestry looks for a file named whatever.spr and doesn't
actually find it in the filesystem and therefore assumes it must be a
Tapestry page/component reference.

I assume you need to make another contribution somewhere to hook in your own
filter in the same way that the StaticFilesFilter is hooked in, but if you
were to have the service() method return false when suffix equals 'spr' then
I think that would pass control to the servlet container.

There may also be some value in a (somewhat) related topic back in August:
[T5] Security of files in the classpath.

This would make a useful Wiki entry once you figure out the correct way to
do it.

Jonathan


> -----Original Message-----
> From: trekmbikes [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 24, 2007 5:17 PM
> To: users@tapestry.apache.org
> Subject: T5 user servlet mapped to extension *.spr gets rejected as
> invalid component
> 
> 
> Hi,
> 
> I have the tapestry filter set up as usual, and I have a separate servlet
> that's mapped to incoming requests with the url-pattern "*.spr". When I
> try
> to request one of the spr pages, the Tapestry filter intercepts the
> request
> as expected, looks for the component with the specified name, and rejects
> the request (displayed on the webpage as an exception) with the error that
> the component was not found.
> 
> How can I map servlets to file extensions if Tapestry doesn't pass them on
> through the filter?
> 
> Thanks!
> Connor
> --
> View this message in context: http://www.nabble.com/T5-user-servlet-
> mapped-to-extension-*.spr-gets-rejected-as-invalid-component-
> tf4687080.html#a13395290
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to