Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/ArtifactDatabaseActionBase.java @ 34:25fdec8b4c69
Added Global Errorhandling to the GNV-Client
gnv/trunk@170 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 02 Oct 2009 08:38:57 +0000 |
parents | 65ff6fcfee0c |
children | ad381cc47217 |
comparison
equal
deleted
inserted
replaced
33:32ffff3f67aa | 34:25fdec8b4c69 |
---|---|
17 * | 17 * |
18 */ | 18 */ |
19 public class ArtifactDatabaseActionBase extends Action { | 19 public class ArtifactDatabaseActionBase extends Action { |
20 | 20 |
21 protected final static String SUCCSESS_FORWARD_ID = "success"; | 21 protected final static String SUCCSESS_FORWARD_ID = "success"; |
22 protected final static String EXCEPTION_FORWARD_ID = "success"; | |
23 | |
22 /** | 24 /** |
23 * the logger, used to log exceptions and additonaly information | 25 * the logger, used to log exceptions and additonaly information |
24 */ | 26 */ |
25 private static Logger log = Logger.getLogger(ArtifactDatabaseActionBase.class); | 27 private static Logger log = Logger.getLogger(ArtifactDatabaseActionBase.class); |
26 | 28 |
37 @Override | 39 @Override |
38 public ActionForward execute(ActionMapping mapping, ActionForm form, | 40 public ActionForward execute(ActionMapping mapping, ActionForm form, |
39 HttpServletRequest request, HttpServletResponse response) | 41 HttpServletRequest request, HttpServletResponse response) |
40 throws Exception { | 42 throws Exception { |
41 log.debug("ArtifactDatabaseActionBase.execute"); | 43 log.debug("ArtifactDatabaseActionBase.execute"); |
42 ActionForward lForward = mapping.findForward(SUCCSESS_FORWARD_ID); | 44 ActionForward forward = mapping.findForward(SUCCSESS_FORWARD_ID); |
45 return forward; | |
46 } | |
47 | |
48 /** | |
49 * Returns the ExceptionForward for the ArtifactDatabaseActions | |
50 * @param mapping | |
51 * @return | |
52 */ | |
53 protected ActionForward getExceptionForward (ActionMapping mapping){ | |
54 log.debug("ArtifactDatabaseActionBase.getExceptionForward"); | |
55 ActionForward lForward = mapping.findForward(EXCEPTION_FORWARD_ID); | |
43 return lForward; | 56 return lForward; |
44 } | 57 } |
45 } | 58 } |