aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes send values from javascript to servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "send values from javascript to servlet" Watch "send values from javascript to servlet" New topic
Author

send values from javascript to servlet

sahana mithra
Ranch Hand

Joined: Oct 26, 2010
Posts: 72
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

Joined: Jan 08, 2009
Posts: 1478
    
    6

Can't you use getParamterValues at server end, that seems to be earier.


Swastik
sahana mithra
Ranch Hand

Joined: Oct 26, 2010
Posts: 72
Hi swastik,
I need to get checkbox values and delete/modify which is in the final part of code as well.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1478
    
    6

Your html/jsp code should look something like this



and servlet code should look something like this

 
Don't get me started about those stupid light bulbs.
 
subject: send values from javascript to servlet