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