return getSharedFlow(_request, _response);
else if(name.equals("requestScope")) {
if(_requestParameter == false)
return new RequestAttributeMap(_request);
else
throw new IllegalExpressionException("The request data binding context can not be updated from a request parameter.");
} else if(name.equals("sessionScope")) {
if(_requestParameter == false)
return new SessionAttributeMap(((HttpServletRequest)_request).getSession());
else
throw new IllegalExpressionException("The session data binding context can not be updated from a request parameter.");
}
// @bug: need to get the ServletContext from somewhere
else if(name.equals("applicationScope")) {
if(_requestParameter == false)
return null;
else
throw new IllegalExpressionException("The application data binding context can not be updated from a request parameter.");
} else {
String msg = "Could not resolve variable named \"" + name + "\" for an expression update.";
if(LOGGER.isErrorEnabled())
LOGGER.error(msg);
throw new IllegalExpressionException(msg);
}
}