How to pass a hidden value in a form in Spring MVC 3.0
I am not able to assign a value to a hidden field using
<form:hidden path="test" />
. How can I set the value of the test field and access it on the server side.
thanks
Definition and UsageThe <input type="hidden"> defines a hidden input field. A hidden field lets web developers include data that cannot be seen or modified by users when a form is submitted. A hidden field often stores what database record that needs to be updated when the form is submitted.
< form:hidden path = "empId" /> This tag will generate an HTML hidden tag at the time of processing like below. HTML.
<form:hidden path="test" style="display:none"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With