[JAVA] From (form)

From (form)

Send the data entered on the web page to the server-side program Group of input items

Description


<form action="Destination" method="Request method">...</from>

Request method

GET request Get new information (web pages, etc.)

POST request Register the information entered in the form

Text box

Description


<input type="text" name="Part name">

password

Description


<input type="password" name="Part name">

Radio buttons

Description


<input type="radio" name="Part name" value="value">

Submit button

Description


<input type="submit" value="Send">

Request parameter acquisition method

Stored in the HttpServletRequest instance by the AP server and passed to the destination Servlet class or JSP file

Character code specification

Description


request.setCharacterEncoding("Source HTML character code");

Get

Description


String xxx = request.getParameter("Name of request parameter");

Recommended Posts

From (form)
Get "2-4, 7, 9" from [4, 7, 9, 2, 3]
[JQuery] Form selection preview display from file
IntelliJ starting from 1
About ruby ​​form
JSP form path
Calendar.MONTH starts from 0
Spring Boot Form
Form --FormFactory --DynamicForm
Test from StringBoot
Pass Form class from Controller to Thymeleaf by Spring-Boot
[Rails] Save information from one form to multiple tables
(Ruby on Rails6) Reflecting the posted content from the form