try {
if (StringUtils.isEmpty(request.getParameter("searchedId"))) {
return createErrorForward(request, mapping, "missing ID");
}
int oid = Integer.parseInt(request.getParameter("searchedId").trim());
Object object = new IdSearchHelper(oid).search();
return new ActionForward("/do/view/"+HistorySupport.classToName(object.getClass())+"?oid="+oid, true);
} catch (NumberFormatException e) {
return createErrorForward(request, mapping, e.getMessage());
}
}