public ActionForward view( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws AppException { String forwardPage = ""; AssignMessageLogListForm mlf = (AssignMessageLogListForm) form; int id = mlf.getId(); if (id > 0) { AssignMessageLog assignMessageLog = (AssignMessageLog) assignMessageLogBiz.getAssignMessageLogById(id); assignMessageLog.setThisAction("view"); request.setAttribute("assignMessageLog", assignMessageLog); } else { forwardPage = "login"; } forwardPage = "viewassignMessageLog"; return (mapping.findForward(forwardPage)); }