Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send values from javascript to servlet

 
sahana mithra
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the code below I get the values from checkbox and onClicking the checkbox and delete/modify I want to send the values of the checkbox and the type of the button to servlet. How to do that?

 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you use getParamterValues at server end, that seems to be earier.
 
sahana mithra
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi swastik,
I need to get checkbox values and delete/modify which is in the final part of code as well.
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your html/jsp code should look something like this



and servlet code should look something like this

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic