This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 56192
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
ramesh poorella
Ranch Hand

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

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

Joined: Jan 10, 2002
Posts: 56192
    
  13

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Sending multiple values to servlet from jsp using ajax
 
Similar Threads
Adding attributes into scope automatically
how should i remove the error message for the required text field once i move to another text field
servlet or jsp page with prefilled forms
How to bind data to a textbox in servlet?
Help on Ajax