Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pass a hidden value in a form in Spring MVC 3.0?

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

like image 627
Santhosh S Avatar asked Mar 17 '11 11:03

Santhosh S


People also ask

How do you use hidden fields in forms?

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.

What is form hidden path?

< form:hidden path = "empId" /> This tag will generate an HTML hidden tag at the time of processing like below. HTML.


1 Answers

<form:hidden path="test"  style="display:none"/>
like image 172
Ashish Vaghasiya Avatar answered Sep 27 '22 21:09

Ashish Vaghasiya