Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 975 → Rev 976

/kickup/trunk/src/ak/kickup/core/action/ParticipantAction.java
18,7 → 18,6
 
import ak.strutsx.RequestUtilsX;
import ak.strutsx.ErrorHandlerX;
import ak.backpath.BackPath;
 
import ak.kickup.util.StringConverter;
import ak.kickup.util.UserException;
55,7 → 54,7
 
if("update".equals(mapping.getParameter())) {
DynaActionForm theForm = (DynaActionForm)form;
String ident = (String)theForm.get("ident");
String ident = ((String)theForm.get("ident")).trim();
request.setAttribute("participant",
(ident == null) ? null : ParticipantManager.getInstance().findForIdent(ident));
}
245,14 → 244,15
throw ex;
}
 
response.sendRedirect(BackPath.findBackPath(request).getBackwardUrl());
return null;
request.setAttribute("event", event);
request.setAttribute("participant", participant);
return mapping.findForward("default");
}
else if("update".equals(mapping.getParameter())) {
DynaActionForm theForm = (DynaActionForm)form;
Long eventId = StringConverter.parseLong(theForm.get("event"));
Event event = EventManager.getInstance().get(eventId, true);
String ident = (String)theForm.get("ident");
String ident = ((String)theForm.get("ident")).trim();
Participant participant = ParticipantManager.getInstance().findForIdent(ident);
 
if(participant == null) {
299,8 → 299,9
 
ParticipantManager.getInstance().save(participant);
 
response.sendRedirect(BackPath.findBackPath(request).getBackwardUrl());
return null;
request.setAttribute("event", event);
request.setAttribute("participant", participant);
return mapping.findForward("default");
}
else {
throw new Exception("unknown mapping parameter");
/kickup/trunk/src/ak/kickup/core/action/EventAction.java
18,7 → 18,6
 
import ak.strutsx.RequestUtilsX;
import ak.strutsx.ErrorHandlerX;
import ak.backpath.BackPath;
 
import ak.kickup.util.StringConverter;
import ak.kickup.util.UserException;
/kickup/trunk/src/ak/kickup/core/action/ActAction.java
18,7 → 18,6
 
import ak.strutsx.RequestUtilsX;
import ak.strutsx.ErrorHandlerX;
import ak.backpath.BackPath;
 
import ak.kickup.util.StringConverter;
import ak.kickup.util.UserException;