Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't return an arraylist

 
Ank Kap
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic