When I submit a form in a JSP, a new screen pops up on database processing. But incase of a server side validation, a alert pop up is displayed on the first JSP screen. When i re-enter correct data...and submit the next JSP is called. But on IE back on that screen, the previous screen appears with a pop up. I do not want that. please help !
Originally posted by sameer avate: When I submit a form in a JSP, a new screen pops up on database processing. But incase of a server side validation, a alert pop up is displayed on the first JSP screen. When i re-enter correct data...and submit the next JSP is called. But on IE back on that screen, the previous screen appears with a pop up. I do not want that. please help !
You mean to say, alert is popped up in both cases (enter wrong information or correct information) and you don't want it when user enter correct information.
If yes, check you client side validation logic. You must be putting alert irrespective of validation result.
For this we need a hidded field like 'browserback' and make it 'true'. On page load check for Browserback it is true and your data base validatoin is true then only popup the message.
on form submit make the hidded field 'browserback' as false.
NOw if you use browser back button that popup will not come.