Permalink
Browse files

[feature] log timestamp when starting/continueing a new try

  • Loading branch information...
1 parent 6274863 commit 4d8e51d87b93492654ad38bc6f2ffb772a42f303 @smee committed Sep 10, 2010
@@ -46,7 +46,7 @@
/**
* TODO transactions that respects all changes to tasklets etc. per action
* @author Thorsten Berger
- *
+ *
*/
public class ExecuteAction extends org.apache.struts.action.Action {
@@ -131,15 +131,17 @@ public ActionForward execute(final ActionMapping mapping, final ActionForm form,
try {
+ SavePageAction.logPostData(request, ct);
+
if ("new".equals(todo)) { // new try
- ct.startNewTry(Integer.parseInt(request.getParameter("try")));
- // TODO logging
- log.info("Student starts new try.");
+ int tryNo = Integer.parseInt(request.getParameter("try"));
+ ct.startNewTry(tryNo);
+ log.info("Student starts new try.");
} else if ("continue".equals(todo)) { // continue try
ct.continueLastTry();
- log.info("Student continues the try.");
+ log.info("Student continues the try.");
} else {
errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("invalid.parameter"));
saveErrors(request, errors);

0 comments on commit 4d8e51d

Please sign in to comment.