03-10-2011 03:12 AM
03-10-2011 04:52 AM
// Conversion to WebScriptServletRequest allows to access the underlying HttpServletRequest
HttpServletRequest httpRequest = ((WebScriptServletRequest)req).getHttpServletRequest();
HttpSession httpSession = httpRequest.getSession();
ServletContext thisContext = httpSession.getServletContext();
// OK: I can access the other context
ServletContext bfContext = thisContext.getContext("/betterform");
HttpServletResponse httpResponse = ???? ; // no obvious way to get it
RequestDispatcher dispatcher = bfContext.getRequestDispatcher("process");
xformDispatcher.forward(httpRequest, httpResponse);
05-04-2011 05:07 AM
HttpServletResponse httpResponse = WebScriptServletRuntime.getHttpServletResponse(res);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.