This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling multiple methods from RPC servlet

 
john andre
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I have a single remote service servlet which contains 2 methods A() and B() and I am successfully able to call A() from my client side code.
A() returns an Integer and also populates an ArrayList which is returned by B().

What I am trying to do is call A() which returns the integer and then get access to the array list from my client side code. Could someone suggest how this can be done?
Thanks for any suggestions...


 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4313
233
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"not google", please check your private messages regarding an important administrative matter.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what information you have provided, I see two options.

A() returns and int. Do you use that int for anything? If no, then let A return the List
If yes, then you can always make a second call to B to get the list.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic