You can do it with JavaScript (IE only)
var result = showModalDialog( 'dialog.jsp','','dialogHeight:10;status:no;');
And in the 'dialog.jsp' use the returnValue:
<input type="button" value="Ok" onClick="self.returnValue='Ok'; self.close();">
<input type="button" value="Cancel" onClick="self.returnValue='Cancel'; self.close();">
I think there is not other way with javascript (all the things I tried were easily bypassed by the usr)...
May be a 'server' based solution with Java, to be sure that the user has choosed an option?
Regards.
Zakaria khabot wrote:
Hi!!
How to display a dialog box using struts.
The dialog box will contain two button (Ok and Cancel).
Thanks...
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]