| Author |
Pass arraylist from Javascript to servlet
|
Noopur Kore
Ranch Hand
Joined: Aug 18, 2012
Posts: 77
|
|
I want to pass my arraylist to Servlet from my .jsp page which will eventually be sent to my database.
Any help with that...??
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
|
|
Assuming you mean from the client browser page (that it was generated by JSP does not matter) in a request to a servlet.
You could create a POST request with the array contents as one String per line in the body of the POST.
Bill
|
Java Resources at www.wbrogden.com
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56224
|
|
|
It's not clear what you are asking as there is no such thing as an ArrayList in JavaScript.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Pass arraylist from Javascript to servlet
|
|
|