What does the el #{facesContext.externalContext.re

2019-05-22 20:09发布

问题:

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.



标签: jsf el