File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Pop Up Issue

 
sameer avate
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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%
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic