Ani
Ani

Reputation: 742

Externalize web.xml filter init param value

I have the below filter in web.xml:

<filter>
    <filter-name>test</filter-name>
    <filter-class>org.test.MyFilter</filter-class>
    <init-param>
        <param-name>loginUrl</param-name>
        <param-value>https://loginAppName</param-value>
    </init-param>
</filter>

Here loginUrl is different in different environments. So I want to externalize this param value. How to do this?

Upvotes: 1

Views: 476

Answers (0)

Related Questions