public String add() throws IOException { // System.out.println(atts); if (atts == null || atts.length <= 0) { messageService.add(msg, sus, new AttachDto(false), isEmail); } else { // String uploadPath = ServletActionContext.getServletContext().getRealPath("upload"); String uploadPath = "D:\\teach_source\\class2\\j2EE\\document_project\\document01\\WebContent\\upload"; messageService.add( msg, sus, new AttachDto(atts, attsContentType, attsFileName, uploadPath), isEmail); } ActionUtil.setUrl("/message_listSend.action"); return ActionUtil.REDIRECT; }
public String deleteReceive() { messageService.deleteReceive(msg.getId()); ActionUtil.setUrl("/message_listReceive.action"); return ActionUtil.REDIRECT; }