HiddenFormInput class

The HiddenFormInput class represents a hidden input type in an HTML form.

The following code example shows you how to create a HiddenFormInput object:

    HiddenFormInput hidden = new HiddenFormInput("account", "123456");
    System.out.println(hidden.getTag()):

The code above generates the following tag:

<input type="hidden" name="account" value="123456" />

In an HTML page, the HiddenInputType does not display. It simply sends the information (in this case the account number) back to the server.