Ejemplo n.º 1
0
 public String turnUpdateChat() {
   System.out.println("turnupdatechat");
   CourseDAO dao = new CourseDAO();
   coursedata = dao.loadCourse(coursedata.getElcourseId());
   ChatDAO dao1 = new ChatDAO();
   chat = dao1.loadChat(chat.getElchId());
   return "turnupdatechat";
 }
Ejemplo n.º 2
0
 public String turnChatList() {
   System.out.println("turnchatlist");
   CourseDAO dao = new CourseDAO();
   ChatDAO dao1 = new ChatDAO();
   coursedata = dao.loadCourse(coursedata.getElcourseId());
   ActionContext.getContext().put("chatlist", dao1.loadcoursechat(coursedata));
   return "turnchatlist";
 }
Ejemplo n.º 3
0
 public String turnChatDetailTch() {
   System.out.println("turnchatdetailtch");
   ChatDetailDAO dao = new ChatDetailDAO();
   ChatDAO dao2 = new ChatDAO();
   CourseDAO dao3 = new CourseDAO();
   coursedata = dao3.loadCourse(coursedata.getElcourseId());
   chat = dao2.loadChat(chat.getElchId());
   maxpage = maxpage;
   page = page;
   if (maxpage == 0) {
     System.out.println("maxpage null");
     maxpage = dao.CountChatDetail(chat, pagesize);
     System.out.println(maxpage);
   }
   ActionContext.getContext().put("chatdetaillist", dao.loadPageChatDetail(chat, pagesize, page));
   return "turnchatdetailtch";
 }
Ejemplo n.º 4
0
 public String turnAddChat() {
   System.out.println("turnaddchat");
   CourseDAO dao = new CourseDAO();
   coursedata = dao.loadCourse(coursedata.getElcourseId());
   return "turnaddchat";
 }