手动清除actionform

//清除ActionForm
if (mapping.getAttribute() != null) {
    if ("request".equals(mapping.getScope())) {
        request.removeAttribute(mapping.getAttribute());
    }else {
        HttpSession session = request.getSession();
        session.removeAttribute(mapping.getAttribute());
   }
}

你可能感兴趣的:(ActionForm)