I am new to
java and need some help regarding java bean re-initialization.
I have a java bean that i use to show data (from a database) on a webpage. I want to show fresh records on the page every time the page is visited. Do i need to re-initialize the bean on each page load? if yes, how can i do that?
I am using hibernate for database connection, should i re-open the connection on each page load?
Thanks.