/** Process the HTTP Post request */ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { WebDoc doc = null; WebSessionCtx wsc = WebSessionCtx.get(request); WWindowStatus ws = WWindowStatus.get(request); String data = WebUtil.getParameter(request, "chatinput"); int CM_ChatID = WebUtil.getParameterAsInt(request, "CM_ChatID"); int AD_Table_ID = WebUtil.getParameterAsInt(request, "AD_Table_ID"); int record_ID = WebUtil.getParameterAsInt(request, "record_ID"); String description = WebUtil.getParameter(request, "description"); if (data != null && data.length() > 0) { if (CM_ChatID == 0) { m_chat = new MChat(wsc.ctx, AD_Table_ID, record_ID, description, null); m_chat.save(); } MChatEntry entry = new MChatEntry(m_chat, data); entry.save(); } // data to be saved doc = CreateChatPage(ws, wsc, doc, m_chat.getCM_Chat_ID()); WebUtil.createResponse(request, response, this, null, doc, false); } // doPost
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { log.fine("doGet"); WWindowStatus ws = WWindowStatus.get(request); WebDoc doc = null; if (ws == null) { doc = WebDoc.createPopup("No Context"); doc.addPopupClose(Env.getCtx()); } else doc = ws.mWindow.getHelpDoc(false); WebUtil.createResponse(request, response, this, null, doc, false); }
/** Process the HTTP Get request */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { log.fine("doGet"); WebSessionCtx wsc = WebSessionCtx.get(request); WWindowStatus ws = WWindowStatus.get(request); // WebDoc doc = null; if (ws == null) { doc = WebDoc.createPopup("No Context"); doc.addPopupClose(wsc.ctx); } else { doc = CreateChatPage(ws, wsc, doc, 0); } // WebUtil.createResponse(request, response, this, null, doc, false); } // doGet