aspose file tools*
The moose likes JSP and the fly likes bean value persists on clicking back Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "bean value persists on clicking back" Watch "bean value persists on clicking back" New topic

bean value persists on clicking back

Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

Hi All,
I have a jsp search screen with 4 checkboxes say a,b,c,d.
The problem occurs in the following steps
1) I check a and b and submit the request . App navigates to results screen.
2) I come back to search screen, a and b are checked. I uncheck them and check c and d , submit form to see results screen.
3) Click back from to go back to search screen.
Problem :: this time, all a,b,c and d are checked.

My jsp code :

search.jsp :

and the checkboxes :


Please help

"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
I agree. Here's the link:
subject: bean value persists on clicking back
Similar Threads
problem with action mapping
JspTranslate: End of content reached while more parsing required: tag nesting error?.
How to Introduce a Button That Controls All Other Links in a Web Page
logic:present not working??????
using ajax and struts iterate tags