• Post Reply Bookmark Topic Watch Topic
  • New Topic

hidden Variables + Servlet

 
Maneesh Chauahn
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
How can i access the hidden variables which are set in the JSP?
Should i use getParameter or getAttribute to access the same

Thanks
Maneesh
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parameters from idden elements are no different than that from any other control. In fact, your servlet has no way of knowing whether the element was a hidden element, or a text element, or a textarea, or a dropdown, and so on.

So, how would you access the value of a text box or other element?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!