This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 1449
    
    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: 1449
    
    6

Your html/jsp code should look something like this



and servlet code should look something like this

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: send values from javascript to servlet
 
Similar Threads
Display table row value in another form
form validator to check for alphabets in a text field
JSP page not showing alert box
retriving checkbox values
Sending checkbox value to two different servlet page