return UNRESOLVED;
HttpServletRequest request = (HttpServletRequest)(webRequest.getNativeRequest());
HttpServletResponse response = (HttpServletResponse)(webRequest.getNativeResponse());
HtmlCanvas canvas = HtmlCanvasFactory.createCanvas(request,response,response.getWriter());
PageContext context = canvas.getPageContext();
boolean empty = true;
if (this.shareSessionAttributes) {
HttpSession session = request.getSession(false);
if (session != null) {
Enumeration<?> enumerator = session.getAttributeNames();
while(enumerator.hasMoreElements()) {
String name = (String)enumerator.nextElement();
context.set(name,session.getAttribute(name));
empty = false;
}
if (!empty) context.attributes.push();
}
}
empty = true;
if (this.shareRequestParameters) {
Enumeration<?> enumerator = request.getParameterNames();
while(enumerator.hasMoreElements()) {
String name = (String)enumerator.nextElement();
context.set(name,request.getParameter(name));
empty = false;
}
if (!empty) context.attributes.push();
}
empty = true;
if (this.shareRequestAttributes) {
Enumeration<?> enumerator = request.getAttributeNames();
while(enumerator.hasMoreElements()) {
String name = (String)enumerator.nextElement();
if (!name.startsWith("org.springframework")) { // no need for spring internals
context.set(name,request.getAttribute(name));
empty = false;
}
}
if (!empty) context.attributes.push();
}