The hidden tag

In this section, you will learn about the of Spring form tag library.

The hidden tag

The hidden tag

In this section, you will learn about the of Spring form tag library.

In case you want to submit a hidden value, use the HTML input tag with type 'hidden'. The hidden tag of Spring form tag library renders the HTML 'input' tag with type 'hidden'.

You can do it like this :

<form:hidden path="state" />

The above tag renders an HTML 'input' tag with type 'hidden', as shown below :

<input name="state" type="hidden" value="Delhi"/>