@Override protected String go() throws Exception { /* 判断privateFlag是否为指定值 0 1 2 */ if (Integer.getInteger(privateFlag) != null) { int flag = Integer.getInteger(privateFlag); if (flag != 0 && flag != 1 && flag != 2) { this.redirectURL = "../photo/albumlist.action"; message = "出错了!"; return "message"; } } PhotoService photoService = (PhotoService) this.getBean("photoService"); photoService.modifyAlbumName(albumid, this.currentUserid, albumName, privateFlag, remark); return SUCCESS; }
protected String getin() { PhotoService photoService = (PhotoService) this.getBean("photoService"); album = (SnsPhotoAlbum) photoService.get(SnsPhotoAlbum.class, albumid); return INPUT; }