diff --git a/serverApps/src/main/servlet/org/compiere/www/DisplayTable.java b/serverApps/src/main/servlet/org/compiere/www/DisplayTable.java
index a723c103fd..41ae857e68 100644
--- a/serverApps/src/main/servlet/org/compiere/www/DisplayTable.java
+++ b/serverApps/src/main/servlet/org/compiere/www/DisplayTable.java
@@ -15,39 +15,21 @@
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.www;
-
-
-/**
- * Display Table Information
- *
- * @author Jorg Janke
- * @version $Id: DisplayTable.java,v 1.2 2006/07/30 00:53:21 jjanke Exp $
- */
public class DisplayTable
{
- /**
- * DisplayTable
- */
public DisplayTable (String tableName, String columnName)
{
- } // DisplayTable
-
+ }
public String[] getQueryLabels()
{
return null;
- } // getQueryNames
-
+ }
public String[] getQueryFields()
{
return null;
- } // getQueryFields
-
+ }
public String[] getResultLabels()
{
return null;
- } // getResultLabels
-
-
-
-
-} // DisplayTable
+ }
+}
\ No newline at end of file
diff --git a/serverApps/src/main/servlet/org/compiere/www/Test.java b/serverApps/src/main/servlet/org/compiere/www/Test.java
index d0992505d4..df53905a6b 100644
--- a/serverApps/src/main/servlet/org/compiere/www/Test.java
+++ b/serverApps/src/main/servlet/org/compiere/www/Test.java
@@ -16,64 +16,29 @@
*****************************************************************************/
package org.compiere.www;
-import java.io.IOException;
-
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.compiere.util.WebDoc;
-import org.compiere.util.WebEnv;
-import org.compiere.util.WebUtil;
-
-/**
- * Test Servlet
- *
- * @author Jorg Janke
- * @version $Id: Test.java,v 1.2 2006/07/30 00:53:21 jjanke Exp $
- */
+import java.io.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import org.compiere.util.*;
public class Test extends HttpServlet
{
- /**
- *
- */
- private static final long serialVersionUID = -8474219907861637179L;
-
-
- /**
- * Initialize global variables
- */
public void init(ServletConfig config)
throws ServletException
{
super.init(config);
if (!WebEnv.initWeb(config))
throw new ServletException("Test.init");
- } // init
-
- /**
- * Process the HTTP Get request
- */
+ }
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
WebDoc doc = WebDoc.create ("Get Request Test");
- //
- WebUtil.createResponse(request, response, this, null, doc, false);
- } // doGet
-
-
- /**
- * Process the HTTP Post request
- */
+ WebUtil.createResponse(request, response, this, null, doc, true);
+ }
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
WebDoc doc = WebDoc.create ("Post Request Test");
- //
- WebUtil.createResponse(request, response, this, null, doc, false);
- } // doPost
-
-} // Test
+ WebUtil.createResponse(request, response, this, null, doc, true);
+ }
+}
\ No newline at end of file
diff --git a/serverApps/src/main/servlet/org/compiere/www/Test2.java b/serverApps/src/main/servlet/org/compiere/www/Test2.java
index 3036131215..a77523d715 100644
--- a/serverApps/src/main/servlet/org/compiere/www/Test2.java
+++ b/serverApps/src/main/servlet/org/compiere/www/Test2.java
@@ -16,60 +16,28 @@
*****************************************************************************/
package org.compiere.www;
-import java.io.IOException;
+import java.io.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import org.compiere.util.*;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.compiere.util.WebDoc;
-import org.compiere.util.WebEnv;
-import org.compiere.util.WebUtil;
-
-/**
- * Test Servlet 2
- *
- * @author Jorg Janke
- * @version $Id: Test2.java,v 1.2 2006/07/30 00:53:21 jjanke Exp $
- */
public class Test2 extends HttpServlet
{
- /**
- *
- */
- private static final long serialVersionUID = -6839830507472511719L;
-
-
- /**
- * Initialize global variables
- */
public void init(ServletConfig config) throws ServletException
{
super.init(config);
WebEnv.initWeb(config);
- } // init
-
- /**
- * Process the HTTP Get request
- */
+ }
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
RequestDispatcher dispatcher = request.getRequestDispatcher("/Test");
dispatcher.forward(request, response);
- } // doGet
-
-
- /**
- * Process the HTTP Post request
- */
+ }
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
WebDoc doc = WebDoc.create ("Get Request Test2");
//
- WebUtil.createResponse(request, response, this, null, doc, false);
- } // doPost
+ WebUtil.createResponse(request, response, this, null, doc, true);
+ }
-} // Test2
+}
diff --git a/serverApps/src/main/servlet/org/compiere/www/WAccount.java b/serverApps/src/main/servlet/org/compiere/www/WAccount.java
index 8122df7e51..78dca5dfff 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WAccount.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WAccount.java
@@ -34,6 +34,7 @@ import org.apache.ecs.xhtml.th;
import org.apache.ecs.xhtml.tr;
import org.compiere.model.GridField;
import org.compiere.model.Lookup;
+import org.compiere.model.MField;
import org.compiere.util.CLogger;
import org.compiere.util.KeyNamePair;
import org.compiere.util.Msg;
@@ -42,166 +43,86 @@ import org.compiere.util.WebEnv;
import org.compiere.util.WebSessionCtx;
import org.compiere.util.WebUtil;
-/**
- * WAccount Servlet.
- *
- * The servlet is invoked by a parent window via
- *
- * WAccount?FormName=formName%ColumnName=columnName
- *
- * and assumes that in the opening window/form there are two fields
- *
- * opener.document.formName.columnName - The (hidden) field for the ID
- * opener.document.formName.columnName_D - The display field for the value
- *
- * When selecting an entry, the window is closed and the value of the two fields set.
- *
- * @author Jorg Janke
- * @version $Id: WAccount.java,v 1.2 2006/07/30 00:53:21 jjanke Exp $
- */
public class WAccount extends HttpServlet
{
- /**
- *
- */
- private static final long serialVersionUID = 7932467581955114222L;
+ private static final String FIELD_NAME = "FieldName";
+ private static final String FIELD_VALUE = "FieldValue";
+ private static final String P_Command = "PCommand";
+ private static final String P_FORM_NAME = "PForm";
- /**
- * Initialize global variables
- *
- * @param config
- * @throws ServletException
- */
public void init(ServletConfig config) throws ServletException
{
super.init(config);
if (!WebEnv.initWeb(config))
throw new ServletException("WAccount.init");
- } // init
-
- /** Logger */
+ }
private static CLogger log = CLogger.getCLogger(WAccount.class);
-
- /**
- * Process the HTTP Get request - initial Start
- * Needs to have parameters FormName and ColumnName
- *
- * @param request
- * @param response
- * @throws ServletException
- * @throws IOException
- */
public void doGet (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
- log.config("WAccount.doGet");
- WebSessionCtx wsc = WebSessionCtx.get(request);
+ log.config( "WAccount.doGet");
+ WebSessionCtx wsc = WebSessionCtx.get(request);
WWindowStatus ws = WWindowStatus.get(request);
if (wsc == null || ws == null)
{
WebUtil.createTimeoutPage(request, response, this, null);
return;
}
- // Get Mandatory Parameters
- String formName = WebUtil.getParameter (request, "FormName");
String columnName = WebUtil.getParameter (request, "ColumnName");
- //
GridField mField = ws.curTab.getField(columnName);
- //Modified by Rob Klein 4/29/07
- log.config("FormName=" + formName + ", ColumnName=" + columnName + ", MField=" + mField.toString());
- if (mField == null || columnName == null || columnName.equals(""))
+ log.config(" ColumnName=" + columnName + ", MField=" + mField.toString());
+ if (mField == null || columnName == null || columnName.equals(""))
{
- WebUtil.createTimeoutPage(request, response, this,
+ WebUtil.createTimeoutPage(request, response, this,
Msg.getMsg(wsc.ctx, "ParameterMissing"));
return;
}
- // Object value = ws.curTab.getValue(columnName);
- String target = "opener.document." + formName + "." + columnName;
- String targetBase = "'" + columnName;
- //Modifeid by Rob Klein 4/229/07
- // Create Document
- WebDoc doc = WebDoc.createPopup (mField.getHeader());
+ String target = "opener.document.WForm." + columnName;
+
+ WebDoc doc = WebDoc.create (mField.getHeader());
body body = doc.getBody();
body.setOnBlur("self.focus();");
- body.addElement(fillTable(ws, mField, targetBase));
- //Modified by Rob Klein 4/29/07
- // Reset, Cancel
+ body.addElement(fillTable(ws, mField, target));
+
button reset = new button();
- reset.addElement("Reset"); // translate
- reset.setOnClick(targetBase + "F.value='';" + targetBase + "D.value='';self.close();");
+ reset.addElement("Reset");
+ reset.setOnClick(target + "D.value='';" + target + "F.value='';window.close();");
button cancel = new button();
- cancel.addElement("Cancel"); // translate
- cancel.setOnClick("self.close();return false;");
+ cancel.addElement("Cancel");
+ cancel.setOnClick("window.close();");
body.addElement(new p(AlignType.RIGHT)
.addElement(reset)
.addElement(" ")
.addElement(cancel));
- //
- // log.fine( doc.toString());
- WebUtil.createResponse (request, response, this, null, doc, false);
- } // doGet
-
-
- /**
- * Process the HTTP Post request - perform doGet
- * @param request
- * @param response
- * @throws ServletException
- * @throws IOException
- */
+ WebUtil.createResponse (request, response, this, null, doc, true);
+ }
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
log.config( "WAccount.doPost");
doGet(request, response);
- } // doPost
-
-
- /*************************************************************************/
-
- /**
- * Fill Table (Generic)
- *
- * @param ws WindowStatus
- * @param mField the Field
- * @param target target field string
- * @return Table with selection
- */
+ }
private table fillTable (WWindowStatus ws, GridField mField, String target)
{
table table = new table("1");
- //Modified by Rob klein 4/29/07
- table.setClass("table-autosort table-autostripe table-stripeclass:alternate");
- table.addElement("");
tr line = new tr();
- line.addElement(new th(" ")).addElement(new th(Msg.translate(ws.ctx, "Name")).setClass("table-sortable:default"));
+ line.addElement(new th(" ")).addElement(new th(Msg.translate(ws.ctx, "Name")));
table.addElement(line);
- table.addElement("");
- table.addElement("
");
-
- // Fill & list options
+
Lookup lookup = mField.getLookup();
- lookup.fillComboBox(mField.isMandatory(false), true, true, true); // no context check
+ lookup.fillComboBox(mField.isMandatory(false), true, true, true);
int size = lookup.getSize();
for (int i = 0; i < size; i++)
{
Object lValue = lookup.getElementAt(i);
if (!(lValue != null && lValue instanceof KeyNamePair))
continue;
- //
- // log.fine( lValue.toString());
KeyNamePair np = (KeyNamePair)lValue;
button button = new button();
button.addElement(">");
- //Modified by Rob Klein 4/29/07
- StringBuffer script = new StringBuffer();
- script
- //.append("';closePopup();")
- .append("startUpdate(").append(target).append("F',")
- .append(target).append("D','").append(np.getKey()).append("',")
- .append(target).append("F','").append(np.getName())
- .append("');return false;");
- button.setOnClick(script.toString());
- //
+ StringBuffer script = new StringBuffer(target);
+ script.append("D.value='").append(np.getKey()).append("';")
+ .append(target).append("F.value='").append(np.getName()).append("';window.close();");
+ button.setOnClick(script.toString());
line = new tr();
line.addElement(new td(button));
String name = np.getName();
@@ -210,10 +131,7 @@ public class WAccount extends HttpServlet
line.addElement(new td(name));
table.addElement(line);
}
- // Restore
lookup.fillComboBox(true);
- table.addElement("");
return table;
- } // fillTable
-
-} // WAccount
+ }
+}
\ No newline at end of file
diff --git a/serverApps/src/main/servlet/org/compiere/www/WAttachment.java b/serverApps/src/main/servlet/org/compiere/www/WAttachment.java
index a9eb8ecb51..06902ef8ac 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WAttachment.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WAttachment.java
@@ -16,49 +16,24 @@
*****************************************************************************/
package org.compiere.www;
-import java.io.IOException;
-import java.util.Properties;
-
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-import org.apache.ecs.AlignType;
-import org.apache.ecs.xhtml.a;
-import org.apache.ecs.xhtml.br;
-import org.apache.ecs.xhtml.form;
-import org.apache.ecs.xhtml.input;
-import org.apache.ecs.xhtml.label;
-import org.apache.ecs.xhtml.p;
-import org.apache.ecs.xhtml.table;
-import org.apache.ecs.xhtml.td;
-import org.apache.ecs.xhtml.textarea;
-import org.apache.ecs.xhtml.tr;
-import org.compiere.model.MAttachment;
-import org.compiere.model.MAttachmentEntry;
-import org.compiere.util.CLogger;
-import org.compiere.util.FileUpload;
-import org.compiere.util.Msg;
-import org.compiere.util.WebDoc;
-import org.compiere.util.WebEnv;
-import org.compiere.util.WebUtil;
+import java.io.*;
+import java.util.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import org.apache.ecs.*;
+import org.apache.ecs.xhtml.*;
+import org.compiere.model.*;
+import org.compiere.util.*;
/**
* HTML UI Attachment
*
* @author Jorg Janke
- * @version $Id: WAttachment.java,v 1.2 2006/07/30 00:53:21 jjanke Exp $
+ * @version $Id: WAttachment.java,v 1.1 2009/04/15 11:27:15 vinhpt Exp $
*/
public class WAttachment extends HttpServlet
{
- /**
- *
- */
- private static final long serialVersionUID = -4241116889907930155L;
/** Logger */
private static CLogger log = CLogger.getCLogger(WAttachment.class);
@@ -77,6 +52,7 @@ public class WAttachment extends HttpServlet
public static final String P_ATTACHMENT_INDEX = "AttachmentIndex";
public static final String P_TEXTMSG = "TextMsg";
+ private String m_error;
/**
* Process the HTTP Get request.
@@ -99,20 +75,26 @@ public class WAttachment extends HttpServlet
}
else
{
- String error = null;
+ m_error = null;
int AD_Attachment_ID = WebUtil.getParameterAsInt(request, P_Attachment_ID);
if (AD_Attachment_ID != 0)
{
int attachmentIndex = WebUtil.getParameterAsInt(request, P_ATTACHMENT_INDEX);
if (attachmentIndex != 0)
{
- error = streamAttachment (AD_Attachment_ID, attachmentIndex, response, ws);
- if (error == null)
+ m_error = streamAttachment (AD_Attachment_ID, attachmentIndex, response, ws);
+ if (m_error == null)
return;
}
}
- doc = createPage (ws.ctx, ws.curTab.getAD_AttachmentID(),
- ws.curTab.getAD_Table_ID(), ws.curTab.getRecord_ID(), error);
+
+ MAttachment attachment = null;
+ if (AD_Attachment_ID != 0)
+ attachment = new MAttachment(ws.ctx, ws.curTab.getAD_AttachmentID(), null);
+ else
+ attachment = new MAttachment (ws.ctx, ws.curTab.getAD_Table_ID(), ws.curTab.getRecord_ID(), null);
+
+ doc = createPage (ws.ctx, attachment, m_error);
}
//
WebUtil.createResponse(request, response, this, null, doc, false);
@@ -137,9 +119,8 @@ public class WAttachment extends HttpServlet
doc = WebDoc.create ("Help - No Context");
else
{
- String error = processPost (request, response, ws);
- doc = createPage (ws.ctx, ws.curTab.getAD_AttachmentID(),
- ws.curTab.getAD_Table_ID(), ws.curTab.getRecord_ID(), error);
+ MAttachment attachment = processPost (request, response, ws);
+ doc = createPage (ws.ctx, attachment, m_error);
}
//
WebUtil.createResponse(request, response, this, null, doc, false);
@@ -151,11 +132,10 @@ public class WAttachment extends HttpServlet
* @param AD_Attachment_ID id for existing attachment
* @param AD_Table_ID table for new attachment
* @param Record_ID record for new attachment
- * @param error optional error message
+ * @param m_error optional m_error message
* @return WebDoc
*/
- private WebDoc createPage (Properties ctx, int AD_Attachment_ID,
- int AD_Table_ID, int Record_ID, String error)
+ private WebDoc createPage (Properties ctx, MAttachment attachment, String error)
{
WebDoc doc = WebDoc.createPopup (Msg.translate(ctx, "AD_Attachment_ID"));
table table = doc.getTable();
@@ -168,11 +148,6 @@ public class WAttachment extends HttpServlet
new p(error, AlignType.LEFT).setClass("Cerror")))); // window.css
}
- MAttachment attachment = null;
- if (AD_Attachment_ID != 0)
- attachment = new MAttachment(ctx, AD_Attachment_ID, null);
- else
- attachment = new MAttachment (ctx, AD_Table_ID, Record_ID, null);
//
tr tr = new tr();
td left = new td("popupCenter", AlignType.LEFT, AlignType.TOP, false,
@@ -182,9 +157,9 @@ public class WAttachment extends HttpServlet
// Text Message Update
form textMsg = new form("WAttachment");
- textMsg.addElement(new input (input.TYPE_HIDDEN, P_Attachment_ID, AD_Attachment_ID));
- textMsg.addElement(new input (input.TYPE_HIDDEN, "AD_Table_ID", AD_Table_ID));
- textMsg.addElement(new input (input.TYPE_HIDDEN, "Record_ID", Record_ID));
+ textMsg.addElement(new input (input.TYPE_HIDDEN, P_Attachment_ID, attachment.getAD_Attachment_ID()));
+ textMsg.addElement(new input (input.TYPE_HIDDEN, "AD_Table_ID", attachment.getAD_Table_ID()));
+ textMsg.addElement(new input (input.TYPE_HIDDEN, "Record_ID", attachment.getRecord_ID()));
textarea msg = new textarea(P_TEXTMSG, 5, 40);
msg.addElement(attachment.getTextMsg());
textMsg.addElement(msg);
@@ -211,7 +186,7 @@ public class WAttachment extends HttpServlet
MAttachmentEntry entry = entries[i];
if (i > 0)
p.addElement(" - ");
- String url = "WAttachment?" + P_Attachment_ID + "=" + AD_Attachment_ID
+ String url = "WAttachment?" + P_Attachment_ID + "=" + attachment.getAD_Attachment_ID()
+ "&" + P_ATTACHMENT_INDEX + "=" + entry.getIndex();
p.addElement(new a(url, null, a.TARGET_BLANK, entry.getName()));
}
@@ -219,9 +194,9 @@ public class WAttachment extends HttpServlet
// Upload
form upload = FileUpload.createForm("WAttachment");
- upload.addElement(new input (input.TYPE_HIDDEN, P_Attachment_ID, AD_Attachment_ID));
- upload.addElement(new input (input.TYPE_HIDDEN, "AD_Table_ID", AD_Table_ID));
- upload.addElement(new input (input.TYPE_HIDDEN, "Record_ID", Record_ID));
+ upload.addElement(new input (input.TYPE_HIDDEN, P_Attachment_ID, attachment.getAD_Attachment_ID()));
+ upload.addElement(new input (input.TYPE_HIDDEN, "AD_Table_ID", attachment.getAD_Table_ID()));
+ upload.addElement(new input (input.TYPE_HIDDEN, "Record_ID", attachment.getRecord_ID()));
right.addElement(upload);
//
tr.addElement(left);
@@ -242,7 +217,7 @@ public class WAttachment extends HttpServlet
* @param attachmentIndex index
* @param response response
* @param ws status
- * @return error message
+ * @return m_error message
*/
private String streamAttachment (int AD_Attachment_ID, int attachmentIndex,
HttpServletResponse response, WWindowStatus ws)
@@ -274,9 +249,9 @@ public class WAttachment extends HttpServlet
* Upload Attachment Entry
* @param request request
* @param response response
- * @return error message
+ * @return m_error message
*/
- private String processPost (HttpServletRequest request,
+ private MAttachment processPost (HttpServletRequest request,
HttpServletResponse response, WWindowStatus ws)
{
int AD_Attachment_ID = 0;
@@ -296,11 +271,11 @@ public class WAttachment extends HttpServlet
else
{
upload = new FileUpload(request);
- String error = upload.getError();
- if (error != null)
+ m_error = upload.getError();
+ if (m_error != null)
{
- log.warning("pocessPost - " + error);
- return error;
+ log.warning("pocessPost - " + m_error);
+ return null;
}
AD_Attachment_ID = upload.getParameterAsInt(P_Attachment_ID);
AD_Table_ID = upload.getParameterAsInt("AD_Table_ID");
@@ -312,11 +287,15 @@ public class WAttachment extends HttpServlet
+ " - Upload=" + upload);
// Check if you own the attachment
- if (ws.curTab.getAD_AttachmentID() != AD_Attachment_ID)
- return "Your Attachment not found";
+ if (ws.curTab.getAD_AttachmentID() != AD_Attachment_ID) {
+ m_error = "Your Attachment not found";
+ return null;
+ }
// Check if we can save
- if (AD_Attachment_ID != 0 && Record_ID == 0)
- return "Need to save record first";
+ if (AD_Attachment_ID != 0 && Record_ID == 0) {
+ m_error = "Need to save record first";
+ return null;
+ }
MAttachment attachment = null;
if (AD_Attachment_ID == 0)
@@ -335,11 +314,13 @@ public class WAttachment extends HttpServlet
// Save and update
if (attachment.save())
ws.curTab.loadAttachments(); // update Tab
- else
- return "Attachment not saved";
+ else {
+ m_error = "Attachment not saved";
+ return null;
+ }
+
+ return attachment;
- // OK
- return null;
} // processPost
diff --git a/serverApps/src/main/servlet/org/compiere/www/WChat.java b/serverApps/src/main/servlet/org/compiere/www/WChat.java
index b495e057b5..8b41f52abc 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WChat.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WChat.java
@@ -16,13 +16,10 @@
*****************************************************************************/
package org.compiere.www;
-import java.io.IOException;
+import java.io.*;
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
+import javax.servlet.*;
+import javax.servlet.http.*;
import org.apache.ecs.AlignType;
import org.apache.ecs.Element;
@@ -35,27 +32,17 @@ import org.apache.ecs.xhtml.tr;
import org.compiere.model.GridField;
import org.compiere.model.MChat;
import org.compiere.model.MChatEntry;
-import org.compiere.util.CLogger;
-import org.compiere.util.Msg;
-import org.compiere.util.Util;
-import org.compiere.util.WebDoc;
-import org.compiere.util.WebEnv;
-import org.compiere.util.WebSessionCtx;
-import org.compiere.util.WebUtil;
+import org.compiere.util.*;
/**
* Web (window) Chat
*
* @author Jorg Janke
- * @version $Id: WChat.java $
+ * @version $Id: WChat.java,v 1.1 2009/04/15 11:27:15 vinhpt Exp $
*/
public class WChat extends HttpServlet
{
- /**
- *
- */
- private static final long serialVersionUID = 6826855534161342772L;
/** Logger */
protected CLogger log = CLogger.getCLogger(getClass());
private MChat m_chat;
diff --git a/serverApps/src/main/servlet/org/compiere/www/WError.java b/serverApps/src/main/servlet/org/compiere/www/WError.java
index 6dafa47205..cee94e2571 100644
--- a/serverApps/src/main/servlet/org/compiere/www/WError.java
+++ b/serverApps/src/main/servlet/org/compiere/www/WError.java
@@ -16,30 +16,19 @@
*****************************************************************************/
package org.compiere.www;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-import javax.servlet.ServletConfig;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import java.io.*;
public class WError extends HttpServlet
{
- /**
- *
- */
- private static final long serialVersionUID = 7940367932646085428L;
static final private String CONTENT_TYPE = "text/html";
static final private String DOC_TYPE = "";
- /**Initialize global variables*/
public void init(ServletConfig config) throws ServletException
{
super.init(config);
}
- /**Process the HTTP Get request*/
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
response.setContentType(CONTENT_TYPE);
@@ -52,7 +41,6 @@ public class WError extends HttpServlet
out.println("The servlet has received a GET. This is the reply.
");
out.println("