wood burning stoves 2.0
The moose likes Struts and the fly likes How to display message box in struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to display message box in struts?" Watch "How to display message box in struts?" New topic

How to display message box in struts?

Happy S Singh
Ranch Hand

Joined: Nov 14, 2011
Posts: 56
I am using below code to display dialog box

But I guess JOptionPane wont work in struts. So how to display dialog box in struts?
Faisal Fuad
Ranch Hand

Joined: Jul 05, 2011
Posts: 83

How can you use "JOptionPane" in Struts? You better try to use jQuery or JavaScript for that. Look at the following examples:

a) http://www.queness.com/post/1696/create-a-beautiful-looking-custom-dialog-box-with-jquery-and-css3

b) http://jqueryui.com/demos/dialog/

Sample (Source: http://docs.jquery.com/UI/Dialog):

50 Tutorials & Examples for jQuery or JavaScript Dialog Boxes: http://www.techflaps.com/2012/02/jquery-or-javascript-dialog-boxes/
Best of Luck
I agree. Here's the link: http://aspose.com/file-tools
subject: How to display message box in struts?
It's not a secret anymore!