Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes How the get the instance of PageContext/JSPContext from the FacesContext? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How the get the instance of PageContext/JSPContext from the FacesContext?" Watch "How the get the instance of PageContext/JSPContext from the FacesContext?" New topic
Author

How the get the instance of PageContext/JSPContext from the FacesContext?

suresh dasari
Ranch Hand

Joined: Oct 05, 2009
Posts: 120

Hi Ranchers,

I am trying to get the instance of either PageContext or JSPContext from FacesContext to evaluate the ELExpression. is there any way to get the former instance variable from FacesContext?
I have an EL expression like #{resouce.lastName} (resouce is not a backingbean instance, it is resourceBundle name), so I want to get the associated value of lastName which is in property file.

Thaks in advance.


Sun Certified Java Programmer with 93 percent
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How the get the instance of PageContext/JSPContext from the FacesContext?
 
Similar Threads
How to get PageContext
JspContext and PageContext - Doubt on HFSJ
Access HttpServletRequest from within SimpleTagSupport
Can't cast JspContext to PageContext ???
Simple Tag - Get Request Object