1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| public abstract class ActionGenerique extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
// Execution de la partie specifique a la classe fille
try {
return executeFils(mapping, form, request, response, session);
} catch (IOException e) {
logger.log(Level.SEVERE, "Erreur à l'execution d'une action, IOException : \n"+e);
throw e;
} catch (ServletException e) {
logger.log(Level.SEVERE, "Erreur à l'execution d'une action, ServletException : \n"+e);
throw e;
}
}
public abstract ActionForward executeFils(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, HttpSession session) throws IOException, ServletException;
} |
Partager