This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes gloabal variable value not assigning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "gloabal variable value not assigning" Watch "gloabal variable value not assigning" New topic

gloabal variable value not assigning

Sridhar Ranganthan
Ranch Hand

Joined: Mar 12, 2009
Posts: 36

global variable value is not assiging during asynchronous call.

consider the below ex

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

Because the request is asynchronous. Line 10 executes after the request is made but it's not going to wait for the request to complete so the variable has yet to be updated.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: gloabal variable value not assigning
It's not a secret anymore!