Showing results for 
Search instead for 
Did you mean: 

Find Request handle in Resource List Filter

Former Member
0 Kudos


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.



Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I found the solution:

I took the IResourceContext from the resource. Then got the object from the context. Then the HttpServletRequest.

With the resulting request I was able to get the cookie of the user. That's what I really needed.