struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guido GarcĂ­a Bernardo <>
Subject Re: Displaying a dialogue box with Struts... [OT]
Date Wed, 19 Nov 2003 11:04:31 GMT
This is not really Struts related...

You can do it with JavaScript (IE only)
    var result = showModalDialog( 

And in the 'dialog.jsp' use the returnValue:
    <input type="button" value="Ok" onClick="self.returnValue='Ok'; 
    <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?

Zakaria khabot wrote:

>How to display a dialog box using struts.
>The dialog box will contain two button (Ok and Cancel).

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message