• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display message box in struts?

 
Happy S Singh
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic