Skip to main content

skip to main content

developerWorks  >  Web development  >

Remote scripting using a servlet

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

developerWorks

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.