Devashish Mamgain
Devashish Mamgain

Reputation: 2087

Read context param value in spring configuration xml

Added the following parameter in context.xml

<Parameter name="channel" value="any"
         override="false"/>

I want to read the value of channel in spring configuration xml

<intercept-url pattern="/**" access="ROLE_USER" requires-channel="READ_VALUE_OF_CHANNEL_PARAMETER" />

READ_VALUE_OF_CHANNEL_PARAMETER needs to be replaced. How to do it?

Upvotes: 1

Views: 1490

Answers (1)

Devashish Mamgain
Devashish Mamgain

Reputation: 2087

Found the answer

<intercept-url pattern="/**" access="ROLE_USER" requires-channel="#{contextParameters.channel}" />

Upvotes: 1

Related Questions