Hi all,
I am creating a web app using JSP. I have a bean with some variables whose values are set by the user by using a form in a jsp (method is post). When the user enters those values these are stored in my bean and they are available to all my jsps since I'm creating a "session". So, after the submission of the form the values are still displayed in the form and this is exactly what I want. In my jsp I have an if statement which causes the values to be displayed unless their values are "null". However, when I decide to start a different session and I set all the variables to "null" the values are still displayed on my page after every refresh. I have tested that with firefox, ie, opera and safari, and the only browser that does what I want is safari. The way I'm doing it is to call from my jsp another jsp which sets the vars to "null". I have tried using reset() on the form but it doesn't solve my problem. I have also tried to invalidate the session (after I had set the session's attributes and made my jsp display the session's attributes rather than getting the vars from my bean) but still the values are displayed.
What am I missing here? Sorry for the long message.
Regards
stack
I am creating a web app using JSP. I have a bean with some variables whose values are set by the user by using a form in a jsp (method is post). When the user enters those values these are stored in my bean and they are available to all my jsps since I'm creating a "session". So, after the submission of the form the values are still displayed in the form and this is exactly what I want. In my jsp I have an if statement which causes the values to be displayed unless their values are "null". However, when I decide to start a different session and I set all the variables to "null" the values are still displayed on my page after every refresh. I have tested that with firefox, ie, opera and safari, and the only browser that does what I want is safari. The way I'm doing it is to call from my jsp another jsp which sets the vars to "null". I have tried using reset() on the form but it doesn't solve my problem. I have also tried to invalidate the session (after I had set the session's attributes and made my jsp display the session's attributes rather than getting the vars from my bean) but still the values are displayed.
What am I missing here? Sorry for the long message.
Regards
stack
Comment