wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Sending multiple values to servlet from jsp using ajax 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 "Sending multiple values to servlet from jsp using ajax" Watch "Sending multiple values to servlet from jsp using ajax" New topic
Author

Sending multiple values to servlet from jsp using ajax

gowtham thurangi
Greenhorn

Joined: Apr 05, 2011
Posts: 13

Hi All,


In my jsp dynamic textfields are created. and the values of textfields should send to servlet using ajax.

Please any one help.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Send them as name/value pairs in the POST request body.

Or, use jQuery and the jQuery Forms plugin to easily submit the form through Ajax.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 60
i am also facing same problem...

please provide sample code for this
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

You first! Post your code and we'll give you help with whatever problems you are having. But we won't write the code for you.
 
Consider Paul's rocket mass heater.
 
subject: Sending multiple values to servlet from jsp using ajax
 
Similar Threads
How to bind data to a textbox in servlet?
how should i remove the error message for the required text field once i move to another text field
Adding attributes into scope automatically
Help on Ajax
servlet or jsp page with prefilled forms