Quantcast
Viewing all articles
Browse latest Browse all 1826

Find Request handle in Resource List Filter

Hi,

 

I have created a resource list filter based on the ?SimpleResourceListFilter? example. Now I need to get a handle to the Request or the Session. I am afraid it is not possible to get a handle to the request as the filter does not have ?request? / ?resonse? parameters in its interface. Is is somehow possible to get a handle to Request or Session.

I already tried:

public HttpServletRequest getHttpRequest() throws Exception {     //   Get runtime context     Properties props = new Properties();     props.put("domain", "true");     Context initialContext = new InitialContext(props);     ApplicationWebServiceContext wsContext = (ApplicationWebServiceContext) initialContext.lookup("/wsContext/ApplicationWebServiceContext");     HttpServletRequest req = wsContext.getHttpServletRequest();     return req;     } 

But this returns an exception. I think because there is no Request handle to return.

Please let me know if there is a solution to this problem.

 

Thanks,

Raymond


Viewing all articles
Browse latest Browse all 1826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>