Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
13. Apr 2008, 21:59 CET | Link

I know that after Servlet 2.5 spec, you can specify multiple url-patterns for a Servlet Filter.

However, I'm not sure how to set that up for the seam context filter.

Currently I have:

<web:context-filter url-pattern="/video/*" />

in my components.xml to allow a servlet to handle streaming out video files. I want to add a servlet to stream out large image files under the "/image/*" pattern. How do I configure that in the components.xml?

Thanks!

Devon

 

--

Devon Hillard

Tech Blog

2 Replies:
14. Apr 2008, 00:11 CET | Link

Use the regex-url-pattern attribute instead, for example

<web:context-filter regex-url-pattern="/adf/.*|/media"/>
Rating:  * * * * *
14. Apr 2008, 00:20 CET | Link

Perfect! Thank you very much!

 

--

Devon Hillard

Tech Blog