• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JSP Pop Up Issue

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Ranch Hand
Posts: 3852
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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%
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic