Thursday, July 5, 2018

Hidden Form Field

we store the information in the hidden field and get it from another servlet. This approach is better if we have to submit form in all the pages and we don't want to depend on the browser.

<input type="hidden" name="uname" value="Bharath">

Advantage of Hidden Form Field:
  • It will always work whether cookie is disabled or not.
 Disadvantage of Hidden Form Field:
  • It is maintained at server side.
  • Extra form submission is required on each pages.
  • Only textual information can be used.

No comments:

Post a Comment