struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guido GarcĂ­a Bernardo <ggarc...@itdeusto.com>
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( 
'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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message