File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: Can't return an arraylist
It's not a secret anymore!