Thursday, March 10, 2011

How to get the http request and Http Response in WCS?

ViewCommandContext viewContext = (ViewCommandContext) getCommandContext();

HttpServletRequest httpRequest = ((HttpControllerRequestObject) viewContext.getRequest()).getHttpRequest();

HttpServletResponse httpResponse = (HttpServletResponse) viewContext.getResponse();

No comments:

Post a Comment