• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

i need default page when reload(refresh) the jsp page

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,
i am developing a jsp page with JSF, for this i have a managed bean, in my jsp page there are some output labels those are set from managed bean, my problem is when i reload or refresh the page those output labels are present, now i need a default page ( means labels must be empty or clear )how can i solve this problem.


Thanks & Regards
Edukondalu Avula
 
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Managed beans can be put into any scope. In which scope are you putting your bean into? I think it is session. In session the values will be preserved till the end of session. You can simply change the session scope to request scope and then on each request new instance of bean will be created. So all the other previous values will have no effect on your page.

Whenever you will refresh your page new bean instance will be binded.
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic