Hello everybody
I am working on a Website built on JSP and Servlets . one of the features of the site is to give user the chance to subscribe to different newsletters under different categories.
So for example, user1 surfs to the page which displays category sport and under that some options (check boxes) and he can choose zero or more, and he clicks to add the next catetory options , for example entertainement.
I am new at Java and I'd be grateful if you help me with my questions:
1. What is the best way to keep user's choices as he surfs and adds options under each category ? I thought of using session vars , in form of arrays, but I wonder if there is a better more efficient way ?
2. At the last page, user is shown the category names with two links beside them , edit and remove (he will not see the individual choices under each category) ... could you also advise what is the best way to implement this as well? For example if I use array session vars, I am not sure how to display that particular page again ...
The categories and options under each are stored in database. User's choices are not commited to DB until he reviews the summary and clicks confirm button at the last stage.
Thank you in advance
Vajra