axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r410439 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java
Date Wed, 31 May 2006 05:47:31 GMT
Author: deepal
Date: Tue May 30 22:47:30 2006
New Revision: 410439

URL: http://svn.apache.org/viewvc?rev=410439&view=rev
Log:
fixing AXIS2-745

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java?rev=410439&r1=410438&r2=410439&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java
Tue May 30 22:47:30 2006
@@ -37,7 +37,7 @@
 import javax.xml.namespace.QName;
 import java.io.File;
 import java.io.IOException;
-import java.io.PrintWriter;
+import java.io.OutputStream;
 import java.util.*;
 
 /**
@@ -188,7 +188,7 @@
     }
 
     protected void processEditServicePara(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException {
-        if (req.getParameter("editServicepara") != null) {
+        if (req.getParameter("changePara") != null) {
             String serviceName = req.getParameter("axisService");
             AxisService service = configContext.getAxisConfiguration().getService(serviceName);
 
@@ -216,13 +216,11 @@
                 }
             }
 
-            res.setContentType("text/css");
-
-            PrintWriter out_writer = new PrintWriter(res.getOutputStream());
-
-            out_writer.println("Parameters  changed Successfully");
-            out_writer.flush();
-            out_writer.close();
+            OutputStream out = res.getOutputStream();
+            res.setContentType("text/xml");
+            out.write("Parameters  changed Successfully".getBytes());
+            out.flush();
+            out.close();
             req.getSession().removeAttribute(Constants.SERVICE);
 
             return;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message