93949596979899100101102103104105106107
} context.set("p", p); // Map<String, String> u = new HashMap<String, String>(); AtMap at = Mvcs.getAtMap(req.getSession().getServletContext()); if (at != null) { for(Object o : at.keys()){ String key = (String) o; u.put(key, at.get(key)); } context.set("u", u); } // 加入返回对象
102103104105106107108109110111112113114115116
context.set(key, value);//以支持直接获取请求参数 } context.set("p", p); Map<String, String> u = new HashMap<String, String>(); AtMap at = Mvcs.getAtMap(); if (at != null) { for(Object o : at.keys()){ String key = (String) o; u.put(key, at.get(key)); } context.set("u", u); } // 加入返回对象
303132333435363738
servlet.service(request, response); assertEquals("\">>xyz\"", response.getAsString()); Mvcs.set("nutz", request, response); AtMap am = Mvcs.getAtMap(); assertEquals("/atmap/ABC", am.get("at.abc")); assertEquals("/atmap/xyz", am.get("at.xyz")); }
109110111112113114115116117118119120121122123
context.set(key, value);// 以支持直接获取请求参数 } context.set("p", p); Map<String, String> u = new HashMap<String, String>(); AtMap at = Mvcs.getAtMap(); if (at != null) { for (Object o : at.keys()) { String key = (String) o; u.put(key, at.get(key)); } context.set("u", u); } // 加入返回对象