aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to display message box in struts?" Watch "How to display message box in struts?" New topic
Author

How to display message box in struts?

Happy S Singh
Ranch Hand

Joined: Nov 14, 2011
Posts: 55
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: 79

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?