I am quite confused working with bean scopes. All beans are maintained in session scopes in my application. The home screen,the header part contains some buttons, home , goto app1, goto app2. This screen comes after login the login screen.
My problem is , After entering the login screen, we are brought to home screen, from that if we click goto app2 button, then redirected to app2 screen. In app2 there is a search criteria,and entering all the required details, and click on the fetch button,data is coming in the grid.This is all fine. From here , if i go home screen , and again , if i click the 'goto app2' link, the same data , whatever i have performed previously, is coming.
Do not know what is the reason. Can any one please clarifies this?
Joined: Jun 02, 2009
Since your bean is in session scope, the data you have fetched would be there till the current session is active.
You can use request scope or you have to remove the fetched contents from you session while you are redirecting to your home page.