axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/transport/http AdminServlet.java AxisServlet.java
Date Tue, 18 Jan 2005 07:51:53 GMT
toshi       2005/01/17 23:51:53

  Modified:    java/src/org/apache/axis/transport/http AdminServlet.java
                        AxisServlet.java
  Log:
  These're for i18n. The charset should be UTF-8.
  
  Revision  Changes    Path
  1.29      +1 -1      ws-axis/java/src/org/apache/axis/transport/http/AdminServlet.java
  
  Index: AdminServlet.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/AdminServlet.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- AdminServlet.java	2 Jul 2004 13:13:30 -0000	1.28
  +++ AdminServlet.java	18 Jan 2005 07:51:53 -0000	1.29
  @@ -60,7 +60,7 @@
        */
       public void doGet(HttpServletRequest request, HttpServletResponse response)
           throws ServletException, IOException {
  -        response.setContentType("text/html");
  +        response.setContentType("text/html; charset=utf-8");
           StringBuffer buffer=new StringBuffer(512);
           buffer.append("<html><head><title>Axis</title></head><body>\n");
           //REVISIT: what happens if there is no engine?
  
  
  
  1.187     +6 -6      ws-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
  
  Index: AxisServlet.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
  retrieving revision 1.186
  retrieving revision 1.187
  diff -u -r1.186 -r1.187
  --- AxisServlet.java	10 Jan 2005 20:24:22 -0000	1.186
  +++ AxisServlet.java	18 Jan 2005 07:51:53 -0000	1.187
  @@ -309,7 +309,7 @@
                   // print a message informing the user that they reached
                   // the servlet.
   
  -                response.setContentType("text/html");
  +                response.setContentType("text/html; charset=utf-8");
                   writer.println("<html><h1>Axis HTTP Servlet</h1>");
                   writer.println(Messages.getMessage("reachedServlet00"));
   
  @@ -342,7 +342,7 @@
       private void reportTroubleInGet(Throwable exception,
                                       HttpServletResponse response,
                                       PrintWriter writer) {
  -        response.setContentType("text/html");
  +        response.setContentType("text/html; charset=utf-8");
           response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
           writer.println("<h2>" +
                          Messages.getMessage("error00") +
  @@ -422,7 +422,7 @@
       protected void reportServiceInfo(HttpServletResponse response,
                                        PrintWriter writer, SOAPService service,
                                        String serviceName) {
  -        response.setContentType("text/html");
  +        response.setContentType("text/html; charset=utf-8");
   
           writer.println("<h1>"
                          + service.getName()
  @@ -472,7 +472,7 @@
               ConfigurationException, AxisFault {
           AxisEngine engine = getEngine();
   
  -        response.setContentType("text/html");
  +        response.setContentType("text/html; charset=utf-8");
           writer.println("<h2>And now... Some Services</h2>");
   
           Iterator i;
  @@ -529,7 +529,7 @@
                                               PrintWriter writer) {
           // no such service....
           response.setStatus(HttpURLConnection.HTTP_NOT_FOUND);
  -        response.setContentType("text/html");
  +        response.setContentType("text/html; charset=utf-8");
           writer.println("<h2>" +
                          Messages.getMessage("error00") + "</h2>");
           writer.println("<p>" +
  @@ -557,7 +557,7 @@
           boolean foundJWSFile = (new File(realpath).exists()) &&
                                  (realpath.endsWith(Constants.
                                                     JWS_DEFAULT_FILE_EXTENSION));
  -        response.setContentType("text/html");
  +        response.setContentType("text/html; charset=utf-8");
           if (foundJWSFile) {
               response.setStatus(HttpURLConnection.HTTP_OK);
               writer.println(Messages.getMessage("foundJWS00") + "<p>");
  
  
  

Mime
View raw message