Hi, While working on a Struts project, I found that it was very difficult to show user preferences (User selects a checkbox, when he logs in again it should show selected Values are coming from the database). We had to reset the user session for acheiving this.Any others who have faced a similar problem?
Hi Vedhas, can u explain ur question in more detail. what i can understand is that: user selects certain options in ur JSP Page. He logs out Logs in again Now you have to show same values to the user, on that page(from database) If this is the case than all you need to do is create an ActionForm, map its variables to the html components. Whenever user enters the data, read that data through ActionForm, and update the database. Whenever u have to display the data, read the data from the database, set the variabes to the value u wish to display. and the JSPpage will get populated autometically.
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"