Hi !
I call a bean's method from JSP which performs some change in the database. Then I should reload the page to make the change gets reflected. But the page gets reloaded before the change in the database takes place. Is there any way to find whether the bean's method is finished executed or not, so that only after the method gets executed, the page can be reloaded.
Thanks
Arun
-
bean method execution .. (2 messages)
- Posted by: A JP
- Posted on: April 03 2001 17:13 EDT
Threaded Messages (2)
- bean method execution .. by Ron Hodges on April 03 2001 18:12 EDT
- use MVC by joseph yi on April 03 2001 18:30 EDT
-
bean method execution ..[ Go to top ]
- Posted by: Ron Hodges
- Posted on: April 03 2001 18:12 EDT
- in response to A JP
How are you reloading the page? -
use MVC[ Go to top ]
- Posted by: joseph yi
- Posted on: April 03 2001 18:30 EDT
- in response to A JP
you should use the MVC design model (model view controller)
you can have your controller (a jsp or servlet) redirect the user only after the database has been successfully updated. it sounds as if your code is organized so that the insert didn't finish in time for a user reload. the MVC design model can help in resolving application logic vs presentation logic issues.