HashMap map = new HashMap();
map.put(REQUEST, req);
map.put(REQUEST2, req);
map.put(RESPONSE, res);
map.put(RESPONSE2, res);
map.put(SESSION, req.getSession(false));
map.put(BASE, req.getContextPath());
map.put(STACK, stack);
map.put(OGNL, OgnlTool.getInstance());
map.put(STRUTS, new StrutsUtil(stack, req, res));
ActionInvocation invocation = (ActionInvocation) stack.getContext().get(ActionContext.ACTION_INVOCATION);
if (invocation != null) {
map.put(ACTION, invocation.getAction());
}
return map;