This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler 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 Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can Watch "Can New topic
Author

Can't return an arraylist

Ank Kap
Greenhorn

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
 
Consider Paul's rocket mass heater.
 
subject: Can't return an arraylist
 
It's not a secret anymore!