ASF Bugzilla – Attachment 37095 Details for
Bug 64218
Servlet receives no parameters from post request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
java file for test app
Test.java (text/plain), 622 bytes, created by
ron
on 2020-03-11 17:11:06 UTC
(
hide
)
Description:
java file for test app
Filename:
MIME Type:
Creator:
ron
Created:
2020-03-11 17:11:06 UTC
Size:
622 bytes
patch
obsolete
>import java.io.IOException; > >import javax.servlet.ServletException; >import javax.servlet.annotation.WebServlet; >import javax.servlet.http.HttpServlet; >import javax.servlet.http.HttpServletRequest; >import javax.servlet.http.HttpServletResponse; > >@WebServlet("/Test") >public class Test extends HttpServlet { > protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { > > String payload = request.getParameter("payload"); > > int length = payload == null ? 0 : payload.length(); > response.getWriter().print("{\"size\":" + length + "}"); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 64218
:
37094
| 37095