This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Can't return an arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can Watch "Can New topic

Can't return an arraylist

Ank Kap

Joined: Feb 29, 2008
Posts: 2
I developed a web service with a method name getData()

I stored the result set of an sql query in an arraylist and i return the arraylist.

but when i try to receive the arraylist in the client in another arraylist, i get an error.
the method getData() seems to be returning void.

what could be the problem.

i declared the method with a return type as ArrayList
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
This does not sound much like a Struts question. If you picked a more appropriate forum and described your web service technology then I am sure somebody could give you a hand.

- Brent
wood burning stoves
subject: Can't return an arraylist
Similar Threads
put arraylist in session?
How to return an array!
help needed in copying an Array
change while loop to recursion?
DataSource passing param