使用ajax提交數據時怎麼沒法保存進數據庫

public String createActivityByAjax() { Course course = (Course) session.get(SESSION_COURSE); User user = (User) session.get(SESSION_USER); bbsTopic = new BbsTopic(); System.out.println("bbsID====="http://www.rr555.com); System.out.println("parameters==="+parameters.get("title")[0]); System.out.println("parameters==="+parameters.get("content")[0]); bbsTopic.setTime(Calendar.getInstance()); bbsTopic.setName(parameters.get("title")[0]); bbsTopic.setContent(parameters.get("content")[0]); bbsTopic.setCourse(course); bbsTopic.setUser(user); bbsTopic.setViewCount(0); bbsTopic.setReplyCount(0); bbsTopic.setState(1); baseService.save(bbsTopic); return "success"; }
相關文章
相關標籤/搜索