It is a memo of how to send the value by GET without screen transition.
a href = "URL? Attribute name =" value "
<body>
<a href="TestServlet?action=sample"></a>
</body>
request.getParameter ("attribute name") s receives the string "sample".
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String s = request.getParameter("action");
Recommended Posts