本帖最后由 jasondxh11 于 2011-05-07 11:06:47 编辑

解决方案 »

  1.   

    /**
         * 删除用户
         * 
         * @return
         */
        public String deleteClient() {
            client = new Client();//这个client对象应该是通过主键clientId查询出来的一个已经存在的对象,而不是你这里的new个新对象,给它的主键赋值
            client.setClientId(StringUtil.StringToInteger(clientId));
            accountService.delete(client);
            return this.listClientsByPage();
        }
      

  2.   

    http://java.wgets.com/thread/44823
    有人在采集你的站