What does the el #{facesContext.externalContext.requestContextPath} mean?

Deadly 提交于 2020-01-02 12:01:29

问题


I am trying to use Exadel Fiji for rendering Pie graphs.

Can someone tell me what does the el #{facesContext.externalContext.requestContextPath} mean ?


回答1:


It returns you path to your project in webapps directory.

For instance, if your project name is myProj,that it will return /myProj

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.



来源:https://stackoverflow.com/questions/4668175/what-does-the-el-facescontext-externalcontext-requestcontextpath-mean

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!