Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Remote scripting using a servlet

How to give Web applications interactivity and dynamism that you'd expect from desktop apps

Return to article.


Listing 4


 Method
                                                       URL
 MSRS
         /servlet/RSExample?_method=getSubcategories=execute=1=1 

              where _method is the method the client is attempting to invoke, _mtype is always "execute" (and ignored by
              RemoteScriptingServlet), pcount is the number of parameters, and p0...pN are the parameters passed to the method.
 JSRS
         /servlet/RSExample?C=jsrs1=getSubcategories=[1] 

              where C is the callback context identifier used to identify which callback method gets invoked on the client side, F is
              the method to invoke, and P0...PN are the parameters passed to the method.

Return to article.