I need to send one Http request to the jsp page , whenever i click one item in the tree control.
and display the response from the HTTP Service.
Actually i am getting the Http Response but the problem is
Assume the following Tree Structure
So if i click A first then i am getting no response but when i click B then A's response is coming.i.e I am getting response for the previous request.
What might be wrong
where are you going to show response?
You showld understand that all operations are asynchronous. So you should either block tree until geting response or show responses with some links to source of this request.
How to make the service request has synchrounous..............
How to block the tree control ?
It's impossible to make requests synchronous. Server may be busy and it may takes long time to answer.
For disabling tree there are many variants: create a count of working requests and bind enabled property of the tree.