Servlet Writing to Object or Bean
I have a servlet which show a row from a Database table.
i want to store that data in an object or java bean so i can access when necessary.
the problem i have is that when the servlet moves on (using a button to the next servlet)
the data in the bean is deleted.
I cant use request.getparameter either because i need the data more than once from different servlets.
Thanks for your help
Re: Servlet Writing to Object or Bean
My response here might address your needs. If you only want the data on a per-session basis, store it as a session variable (request.getSession().setAttribute() ). Otherwise, use an EntityBean or pull the data from the database for each request.