aspose file tools*
The moose likes JSF and the fly likes Problem with {facesContext externalContext requestContextPath} Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with {facesContext externalContext requestContextPath}" Watch "Problem with {facesContext externalContext requestContextPath}" New topic
Author

Problem with {facesContext externalContext requestContextPath}

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello,

I would like for my app to evaluate the above expression. If I use the following sign (#) I get this error: the attributes for a standard action cannot be deferred expressions. If I use the dollar sign the expression is copied as is and not evaluated. My question is as follows: how can use context path in jsf?

Thanks in advance,

Julien Martin.

Daniel Rhoades
Ranch Hand

Joined: Jun 30, 2004
Posts: 186
${pageContext.request.contextPath} should do the trick in a non-facelets application


Drinking more tea is the key...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem with {facesContext externalContext requestContextPath}