Here's one way to do it....

function popUpWindow() {
    var url = '<%=request.getContextPath()%>/myAction.do?';
    var win = window.open(url,'MyWindow','width=620,height=200');
    popwin.focus();    
}






-----Original Message-----
From: Campesato, Oswald [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 4:02 PM
To: [EMAIL PROTECTED]
Subject: struts + pop-up windows


Folks:  I'd like to use Struts for converting an existing servlet
to a JSP page with suitable Struts-based tags.  Here's an
example of the existing code in an HTML file:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
addDialog = window.open("AddUserDialogForm?CMD=INIT", 
                        "adduserdialog", 
                        "width=750,height=350,resizable");
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

where AddUserDialogForm is a servlet that emits HTML with
text fields, buttons, select lists, etc.  Are there examples
of launching a pop-up window via Struts?  Thanks!

Cordially,

Oswald

Reply via email to