Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to prevent printing submit button name

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to get user name and age by a jsp and send them to servlet.
in the servlet i am printing all valus .but it also prints submit button names.
how to privet that.here is the code.



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't want values for the submit buttons to be submitted, don't give them names.

By the way, "print" means to send to a printer.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And another by the way, never name anything submit. it will cause all kinds of problems as you replace the form's submit method when you do this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!