aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes JSP Pop Up Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JSP Pop Up Issue" Watch "JSP Pop Up Issue" New topic
Author

JSP Pop Up Issue

sameer avate
Greenhorn

Joined: Feb 15, 2007
Posts: 9
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 !
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
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.
Mani Venkata Kanth
Ranch Hand

Joined: Aug 21, 2006
Posts: 39
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.

I guess it will help you!!!

Regards,
Krishna Prasad
SCJP - 95%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Pop Up Issue