How could I find the ServletContext in Prpc 5.3? For storing some data I need that.

***Updated by moderator: Marissa to close post***

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

July 8, 2008 - 3:25pm


For security reasons PRPC does NOT allow access to the actual HttpServletRequest object (and thus the HttpSession or ServletContext objects) in all 5.x versions. A HttpServletRequest facade object is made available during authentication time, however this object limits access to just the parameters and properties that could be needed for authentication purposes. More information on the facade object can be found here: http://pdn.pega.com/DevNet/prpcv5/IntegrationServices/docs/53/htmldocs/authentication53_html/Authentication_53p31.asp#bk10 (see section on pxRequestor.pxHTTPServletRequest property)

July 21, 2008 - 5:57am

Hi Fitzi,
Thanks for your reply. I have seen that topic. But in the pxRequestor page HttpServletRequest is not present. I have tested using the following code and printed the object but that was returning null object.

javax.servlet.http.HttpServletRequest request = (javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getProperty("pxHTTPServletRequest").getObjectValue();