Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Access HTML Form name programmatically from Servlet.

 
B West
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm new to some of the servlet concepts, and I'm curious to know if it's possible to access a HTML Form by name. For instance.


Here is the form code on the Html page.


Is it possible to access to in the Servlet say something to the affect of:



I'm not sure if I'm way off base here, if I am, could somebody please give a shove in the correct direction.

Thanks!

Regards
bwest
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65537
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That has nothing to do with servlet concepts -- forms follow HTML and HTTP concepts. And no, the form name is not submitted. If you need extra info, create hidden inputs that contain the data.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No; the only things the servlet has access to are things sent to the servlet.
 
B West
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the direction. I appreciate the help!

bw
 
Enjoy the full beauty of the english language. Embedded in this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!