You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2002/10/18 12:58:57 UTC
cvs commit: jakarta-cactus/sample-servlet/src/sample/share/org/apache/cactus/sample SampleServlet.java
vmassol 2002/10/18 03:58:56
Modified: sample-servlet/src/sample/share/org/apache/cactus/sample
SampleServlet.java
Log:
Remove workaround as it seems the different containers are fine now with PrintWriter.print() ... :-)
Revision Changes Path
1.3 +4 -6 jakarta-cactus/sample-servlet/src/sample/share/org/apache/cactus/sample/SampleServlet.java
Index: SampleServlet.java
===================================================================
RCS file: /home/cvs/jakarta-cactus/sample-servlet/src/sample/share/org/apache/cactus/sample/SampleServlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SampleServlet.java 30 Aug 2002 23:15:48 -0000 1.2
+++ SampleServlet.java 18 Oct 2002 10:58:56 -0000 1.3
@@ -96,11 +96,9 @@
theResponse.setContentType("text/html");
- // Note: We send the text in one line only because some servlet engines
- // (like Tomcat 3.2) add some characters at the end of the line
- // ('\x0D' + '\x0A') even though we use the print() method and not
- // println() ....
- pw.print("<html><head/><body>A GET request</body></html>");
+ pw.print("<html><head/><body>");
+ pw.print("A GET request");
+ pw.print("</body></html>");
}
/**
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>