• 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

Displaying a pop up dialog

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have written a class for validating datas and I am calling this method for validating the "from" and "to" date fields of a form(MyFirstForm) in an Action's execute method. I want to
1) display error in the first jsp itself when the validation fails.
2) pop up a dialog with values fetched from data base between the dates if the validation passes.
The first part was done easily by throwing errors and displaying the same.
How can I get a pop up dialog ( say model dialog) when the validation succeeds.

I have written one more jsp which can be used for displaying in the popup window. But how can I get a pop up model dialog?

thanks and regards

veena
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to me you may write separeate javabean which have some property say msg & getter/setter method to retrive or store value . You can set your
retrive values by setting msg in above javabean. put javabean in request scope e.g request.setAttribute("testBean", testBn);
now on next page which will be displayed write javascript function on onLoad event handler of your form and pass to the function value by using <bean:write> tag which will retrive set value.Display the passed value using alert().
Try it out , it works I tested that.

Regards
Mandar Velankar
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic