public String execute() throws Exception {
			int index = 1, i = 0;
			int item_index  = new Integer(itemname);
			Object[] objects = null;
			List list = (List) this.getSession().get("itemNames");
			Iterator iterator = list.iterator();
			while (iterator.hasNext()){
				objects = (Object[]) iterator.next();
				if(item_index == index){
					break;
				}
				index++;
			}
			itemname = objects[1].toString();//获取当前的itemname
			try{
			//設置Post的值
			user = new User();
			user.setUserid(Integer.parseInt(userId));
			item = new Item();
			item.setItemname(this.getItemname());
			post = new Post();
			post.setItem(item);
			post.setPcontent(postcontent);
			post.setPtitle(posttitle);
			post.setUser(user);
			Date date = new Date();
			System.out.println("date = " + date);
			post.setPtime(date);
			post.setPclicknum(0);
			post.setPreplay(0);
			if(postdao.addpost(post) <= 0){
				System.out.println("----------------开始发帖啦----------------");
				 return ERROR;
			}
		} catch (Exception e) {
			e.printStackTrace();
			return ERROR;//发帖失败，返回用户界面
		}
		this.getRequest().put("post_list", switchObject(this.postdao.viewAllPost(Integer.parseInt(userId),1,10)));
		this.getRequest().put("psotsize", this.postdao.retrieve_postsize(Integer.parseInt(userId)));
		this.getRequest().put("cur_page", "1");
		return "user_info";
	}