Author: jfrederic.clere(a)jboss.com
Date: 2009-05-11 05:32:16 -0400 (Mon, 11 May 2009)
New Revision: 1045
Modified:
sandbox/webapps/src/TestServlet.java
Log:
Add a test for JBPAPP-1950.
Modified: sandbox/webapps/src/TestServlet.java
===================================================================
--- sandbox/webapps/src/TestServlet.java 2009-05-08 15:02:57 UTC (rev 1044)
+++ sandbox/webapps/src/TestServlet.java 2009-05-11 09:32:16 UTC (rev 1045)
@@ -82,6 +82,19 @@
out.println("<body>");
out.println("<h3>" + title + "</h3>");
+
+
+ String testValue = request.getParameter("test");
+ if (testValue != null &&
testValue.compareToIgnoreCase("JBPAPP-1950")==0) {
+ /* Reset the buffer and write JBPAPP-1950 back */
+ response.reset();
+ response.setContentType("plain/text");
+ ServletOutputStream responseStream = response.getOutputStream();
+ responseStream.print("ok....");
+ responseStream.close();
+ return;
+ }
+
String createValue = request.getParameter("create");
int icreate = 0;
if (createValue != null) {
Show replies by date