Author: jfrederic.clere(a)jboss.com
Date: 2008-03-12 11:00:12 -0400 (Wed, 12 Mar 2008)
New Revision: 494
Modified:
sandbox/webapps/src/BigField.java
sandbox/webapps/src/TestFilter.java
Log:
It is not possible to read the parameter and use The InputStream of getInputStream().
Modified: sandbox/webapps/src/BigField.java
===================================================================
--- sandbox/webapps/src/BigField.java 2008-03-12 14:29:56 UTC (rev 493)
+++ sandbox/webapps/src/BigField.java 2008-03-12 15:00:12 UTC (rev 494)
@@ -48,7 +48,7 @@
out.println("<body>");
out.println("<head>");
- String title = "big input field via POST";
+ String title = "big input field via " + request.getMethod();;
out.println("<title>" + title + "</title>");
out.println("</head>");
out.println("<body bgcolor=\"white\">");
@@ -62,6 +62,8 @@
// addition of a PathInfo issue
out.println("<h3>" + title + "</h3>");
+
+/* It is not possible to read the parameter and use The InputStream of getInputStream().
String firstName = request.getParameter("firstname");
String lastName = request.getParameter("lastname");
if (firstName != null || lastName != null) {
@@ -77,6 +79,7 @@
}
}
out.println("<P>");
+ */
/*
// ObjectInputStream.
@@ -116,6 +119,12 @@
} else {
out.println("No input");
}
+
+ /* Try to read a user certificate */
+ Object object =
request.getAttribute("javax.servlet.request.X509Certificate");
+ if (object != null)
+ out.println("<P> Has a javax.servlet.request.X509Certificate
</P>");
+
/* read */
out.println("<P>");
Modified: sandbox/webapps/src/TestFilter.java
===================================================================
--- sandbox/webapps/src/TestFilter.java 2008-03-12 14:29:56 UTC (rev 493)
+++ sandbox/webapps/src/TestFilter.java 2008-03-12 15:00:12 UTC (rev 494)
@@ -73,7 +73,12 @@
chain.doFilter(request, response);
return;
}
+ if (path.compareTo("/BigField") == 0) {
+ chain.doFilter(request, response);
+ return;
+ }
+
// get action
String action = req.getParameter("do");
if (action == null) {
Show replies by date