Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 713
mkvcvc Avatar asked Oct 22 '22 00:10

mkvcvc


1 Answers

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

like image 149
Ramesh PVK Avatar answered Oct 30 '22 02:10

Ramesh PVK