public ActionForward viewLogAsAssignMessage(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws AppException {
    String forwardPage = "";
    AssignMessageLogListForm amloglf = (AssignMessageLogListForm) form;
    long id = amloglf.getAssignMessageId();
    if (id > 0) {
      List assignMessageLogList = assignMessageLogBiz.getAssignMessageLogByAssignMessageId(amloglf);
      if (assignMessageLogList.size() > 0) {
        AssignMessageLog assignMessageLog = (AssignMessageLog) assignMessageLogList.get(0);
        AssignMessage assignMessage = assignMessageLog.getAssignMessage();
        amloglf.setAssignMessage(assignMessage);
      }

      amloglf.setList(assignMessageLogList);
      request.setAttribute("amloglf", amloglf);
    } else {
      forwardPage = "login";
    }
    forwardPage = "viewLogAsAssignMessage";
    return (mapping.findForward(forwardPage));
  }
  public ActionForward list(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws AppException {
    String forwardPage = "";
    AssignMessageLogListForm amloglf = (AssignMessageLogListForm) form;
    if (amloglf == null) amloglf = new AssignMessageLogListForm();
    amloglf.setList(assignMessageLogBiz.getAssignMessageLogs(amloglf));

    request.setAttribute("amloglf", amloglf);
    forwardPage = "listassignMessageLog";
    return (mapping.findForward(forwardPage));
  }
 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));
 }