How to externalize web.xml servlet init-param? Spring DelegatingFilterProxy for Servlets?

Posted by jnorris on Stack Overflow See other posts from Stack Overflow or by jnorris
Published on 2010-05-16T21:59:14Z Indexed on 2010/05/16 22:00 UTC
Read the original article Hit count: 182

Filed under:
|
|

I have a 3rd-party servlet that I cannot modify. It accepts an init-param that I would like to externalize (from web.xml).

I can externalize a servlet filter init-param using DelegatingFilterProxy. This effectively moves the servlet filter definition into Spring where there are much more powerful externalization tools (eg: PropertyPlaceholderConfigurer, environment variables, etc.)

How can I do this for a servlet?

© Stack Overflow or respective owner

Related posts about servlets

Related posts about spring