wood burning stoves*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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...
 
Don't get me started about those stupid light bulbs.
 
subject: Problem with {facesContext externalContext requestContextPath}
 
Similar Threads
Problem with jsp:element being ignored by my jspx
Problem with el evaluation in a jspx
Problem with jsp:element being ignored by my jspx
Internationalization in JSF
Problem with el evaluation in a jspx