This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

Problem with {facesContext externalContext requestContextPath}

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384

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...
I agree. Here's the link:
subject: Problem with {facesContext externalContext requestContextPath}
It's not a secret anymore!