Servlet Hidden Form Field

tutorial and example
tutorial and example

Hidden form field is an invisible field that saves the information regarding the state in client browser. As this information is invisible so client can’t see it but it is visible to servlet.

These fields are added to HTML form and when client submit form then these fields are also sent to the server with form.

Example of Hidden Form Field

index.html

DemoHiddenForm.java

Output: