El#{facesContext.externalContext.requestContextPath}是什么意思? [英] What does the el #{facesContext.externalContext.requestContextPath} mean?
问题描述
我正在尝试使用Exadel Fiji渲染饼图.
I am trying to use Exadel Fiji for rendering Pie graphs.
有人可以告诉我el #{facesContext.externalContext.requestContextPath}
是什么意思吗?
Can someone tell me what does the el #{facesContext.externalContext.requestContextPath}
mean ?
推荐答案
它将返回您在 webapps 目录中的项目的路径.
It returns you path to your project in webapps directory.
例如,如果您的项目名称为myProj,它将返回/myProj
For instance, if your project name is myProj,that it will return /myProj
如我所见,需要避免对您的Web项目名称进行硬编码.例如,您的.war文件(包含您的项目的存档文件)可能以不同的方式命名,并且您不应该知道将在webapps中提取的确切名称.
As I see,it's needed to avoid hardcoding of your web-project name. For instance, you .war file(archive,that contains your project) may be named different ways and you shouldn't know what exactly name it will be extracted under webapps.
这篇关于El#{facesContext.externalContext.requestContextPath}是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!