• 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

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.
reply
    Bookmark Topic Watch Topic
  • New Topic