• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in session scope.

 
prasad kakani
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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?

Thanks
Prasad.
 
Brajendra Mathema
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Please go through the request/session scope.



Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic