return confirmEmail(mapping, form, request, response);
}
public ActionForward uploadDocument(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
final GenericApplicationUploadBean uploadBean = getRenderedObject("genericApplicationDocumentUploadFormFile");
final GenericApplication application = getDomainObject(request, "applicationExternalId");
final String confirmationCode = (String) getFromRequest(request, "confirmationCode");
if (application != null && confirmationCode != null && application.getConfirmationCode() != null
&& application.getConfirmationCode().equals(confirmationCode)) {
try {
final GenericApplicationFile file = uploadBean.uploadTo(application);
if (file != null) {
RenderUtils.invalidateViewState();
} else {
request.setAttribute("hasUploadFileError", Boolean.TRUE);
}