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));
  }