You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mg...@apache.org on 2020/07/09 08:04:10 UTC
[tomcat] branch 9.0.x updated: Update reqparams.html
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new ea71ae7 Update reqparams.html
ea71ae7 is described below
commit ea71ae78bf4d06e3ef1fd7612d91a4224aaa646e
Author: javierlete <jg...@gmail.com>
AuthorDate: Wed Jul 8 10:52:16 2020 +0200
Update reqparams.html
Added the request.getParameter that were missing.
(cherry picked from commit 6c992e2b9ef09d7d7ce282630321084834f6a4ae)
---
webapps/examples/servlets/reqparams.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/webapps/examples/servlets/reqparams.html b/webapps/examples/servlets/reqparams.html
index 7128e39..02dbddf 100644
--- a/webapps/examples/servlets/reqparams.html
+++ b/webapps/examples/servlets/reqparams.html
@@ -44,6 +44,10 @@
out.println("<font color="#009900"><body></font>");
out.println("<font color="#009900"><h3>Request Parameters Example</h3></font>");
out.println("<font color="#009900">Parameters in this request:<br></font>");
+
+ String firstName = request.getParameter("firstname");
+ String lastName = request.getParameter("lastname");
+
if (firstName != null || lastName != null) {
out.println("<font color="#009900">First Name:</font>");
out.println("<font color="#009900"> = </font>" + HTMLFilter.filter(firstName) + "<font color="#009900"><br></font>");
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org