コード例 #1
0
 public void validateAdd() {
   if (sus == null || sus.length <= 0) {
     this.addFieldError("sus", "必须选择要发送的用户");
   }
   if (msg.getTitle() == null || "".equals(msg.getTitle())) {
     this.addFieldError("title", "私人信件的标题不能为空");
   }
   if (this.hasFieldErrors()) {
     addInput();
   }
 }
コード例 #2
0
 public String deleteReceive() {
   messageService.deleteReceive(msg.getId());
   ActionUtil.setUrl("/message_listReceive.action");
   return ActionUtil.REDIRECT;
 }
コード例 #3
0
 public String show() throws IllegalAccessException, InvocationTargetException {
   Message tm = messageService.updateRead(msg.getId(), isRead);
   BeanUtils.copyProperties(msg, tm);
   ActionContext.getContext().put("atts", messageService.listAttachmentByMsg(msg.getId()));
   return SUCCESS;
 }