1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
public String intercept(ActionInvocation invocation) throws Exception {
LOGGER.info("Passage dans [intercept]");
// Récupération des paramètres
final ActionContext context = invocation.getInvocationContext();
HttpServletRequest request = (HttpServletRequest)
context.get(HTTP_REQUEST);
HttpSession session = request.getSession();
Map properties = request.getParameterMap();
for (Iterator it = properties.entrySet().iterator() ; it.hasNext() ;) {
Map.Entry e = (Entry) it.next();
LOGGER.info(e.getKey() + "/" + e.getValue());
request.setAttribute(e.getKey().toString(), e.getValue());
}
return invocation.invoke();
} |
Partager