• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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%
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic