本文介绍了可以在 web.xml 中引用上下文参数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
限时送ChatGPT账号..我可以在 DD 本身中引用上下文参数吗?
例如:
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>
推荐答案
不,这是不可能的.没有这样的功能.
No , it is not possible. There is no such feature.
这篇关于可以在 web.xml 中引用上下文参数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论