Integer resultId = Integer.valueOf(request.getParameter("resultId")); ResultPatent patent = readPatentByOid(resultId);
final String from = request.getParameter("from"); final ResultPatent patent = readPatentFromRequest(request); if (patent == null) { return listPatents(mapping, form, request, response); }
    public ActionForward prepareDeletePatent(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        Integer resultId = Integer.valueOf(request.getParameter("resultId"));        ResultPatent patent = readPatentByOid(resultId);                request.setAttribute("patent", patent);        return mapping.findForward("deletePatent");    }