You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Campesato, Oswald" <OC...@iona.com> on 2001/09/07 01:01:57 UTC
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
RE: struts + pop-up windows
Posted by John Schroeder <js...@quovera.com>.
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:OCampesato@iona.com]
Sent: Thursday, September 06, 2001 4:02 PM
To: struts-user@jakarta.apache.org
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