On Sat, 2008-05-24 at 20:45 +0300, Guy Bashan wrote:
> Hi All,
> 
>  
> 
> I have been fighting with file upload with progress in a JSF form for
> over a week with no luck.
> 
> To do the upload I am using my own filter, that process the upload and
> puts in the session the progress information.
> 
> It seems like my filter is called only after Tomahawk extensions
> filter finishes the upload.
> 
> Can I cancel Tomahawk file upload processing (I will handle the
> processing with my filter instead).

The servlet engine runs filters in the order in which the
<servlet-mapping> elements are defined in the web.xml file. This is
standard servlet stuff.

So if you want your servlet to run first, put its <servlet-mapping>
entry first. It should check whether this is a multi-part post. If so,
then do your custom handling and do not pass the request down.

Regards,
Simon


Reply via email to