Skip to Content
Former Member
Apr 01, 2008 at 09:42 PM

Find Request handle in Resource List Filter



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.