mkvcvc
mkvcvc

Reputation: 1565

Can context-param be referenced inside web.xml?

Can I reference context parameter in a DD itself?
For instance:

<context-param>
    <param-name>firstParam</param-name>
    <param-value>/first</param-value>
</context-param>

And then I would like to be able to do something like this:

<servlet-mapping>
    <servlet-name>firstServlet</servlet-name>
    <url-pattern>${firstParam}</url-pattern>
</servlet_mapping>

Upvotes: 5

Views: 603

Answers (1)

Ramesh PVK
Ramesh PVK

Reputation: 15446

No , it is not possible. There is no such feature.

Upvotes: 3

Related Questions