Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-04-2008, 02:25 AM   PM User | #1
otnj2ee
Regular Coder

 
Join Date: Apr 2007
Posts: 174
Thanks: 17
Thanked 0 Times in 0 Posts
otnj2ee is an unknown quantity at this point
JSONRpcClient and Java class

I wonder how the HttpServletRequest gets passed:

In javascript:

try {
jsonrpc = new JSONRpcClient("/test/json.htm?cmd=handleJsonRpc");

jsonrpc.testRPCService.getResult(...);

//The HttpServletRequest is not set yet

}


json.htm--> Java JASON.java:

public void handleJsonRpc(HttpServletRequest request, HttpServletResponse response) throws Exception {
JSONRPCServlet jsonRpcServlet = new JSONRPCServlet();
jsonRpcServlet.service(request, response);

//The HttpServletRequest is now set, but to where?
}


jsonrpc.testRPCService--> In Java Class TestRPCService.java

public Map getResult(HttpServletRequest request){

//How does the request get passed to here?

}


The JSONRpcClient is initiated from the javascript, but the HttpServletRequest object is generated on the java side and passed to another function in different class, how does it get done?


Thanks


Scott
otnj2ee is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:40 AM.


Advertisement
Log in to turn off these ads.