• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in session scope.

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
That is a really big piece of pie for such a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic