• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Calling multiple methods from RPC servlet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...


 
Sheriff
Posts: 7398
1422
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"not google", please check your private messages regarding an important administrative matter.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic