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