The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Tony Baines:
Perhaps the missing information is that the results of the command.process() are accessed by the JSP? If I understand your approach correctly, there would have to be an additional 'watcher' of commands to wait for them to complete and manage the forwarding to the JSP.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Frank Carver:
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
The way I read it, the forwarding does already happen *after* the command completed - the call to the command is synchronous.
Originally posted by Frank Carver:
If your main aim is just to show a "work in progress" screen during long processing, then the trick I use is to send a page containing an immediate meta-redirect to the request which performs the potentially long-running real work. The user then sits looking at this "sorry, still busy" screen rather than the screen the operation was launched from. This conveniently helps to prevent click-twice-syndrome.
Originally posted by Tony Baines:
I was suggesting using the reloading JSP to poll the Command instance to see if it were done yet.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
So, tell us again, what is the problem with "the controller waiting for the bean's execute() method to return"?
Originally posted by Tony Baines:
The controller is unable to service another HTTP request until it has been freed.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
|