V
Vajra
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 with the choices made...
From the summary page , something like this is displayed to user if he has
choices from 3 categoires of Sport , Social, Home ; but he did not choose
anything from Movies and others.:
Sport : edit (hyperlink) , remove (hyperlink)
Social : edit (hyperlink) , remove (hyperlink)
Home edit (hyperlink) , remove (hyperlink)
The user should have a choice to go back to each category page and edit it
(he will see his previous choices in check boxes), or just by clicking a
link in the final summary page, to remove it. The categories and options
under each are read from 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
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 with the choices made...
From the summary page , something like this is displayed to user if he has
choices from 3 categoires of Sport , Social, Home ; but he did not choose
anything from Movies and others.:
Sport : edit (hyperlink) , remove (hyperlink)
Social : edit (hyperlink) , remove (hyperlink)
Home edit (hyperlink) , remove (hyperlink)
The user should have a choice to go back to each category page and edit it
(he will see his previous choices in check boxes), or just by clicking a
link in the final summary page, to remove it. The categories and options
under each are read from 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