what I have done is forwarding to a jsp page that opens a new window and self-close.
It uses javaScript though. 

//struts-config.xml
================================================================
    <!-- Process a user logon -->
    <action path="/logon_client"
            type="com.client.logon.LogonAction"
            name="logonForm"
            scope="request"
                validate="true"
            input="/logon_client.jsp">
      <forward name="success" path="/logon_client_succ.jsp"/>
    </action>
================================================================

// logon_client_succ.jsp
================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
        <title>Login</title>
        <link rel="STYLESHEET" type="text/css" href="/css/wms.css">
</head>

<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" >
<script language="JavaScript" type="text/javascript">
<!--
    window.opener.newWindow('/netWorth.do','MainWindow',1,1,1,1,1,1,777,460,100,100);
    self.close();
//--></script>
</body>
</html>
================================================================


-----Original Message-----
From: Villegas, Courtney [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 4:16 PM
To: 'Struts Users Mailing List'
Subject: Popup Windows


I am new to Struts usage and am trying to determine if it is possible to
open a new browser window (an control its appearance) via an actionforward
method.  

I realize that the Action itself has no idea of the front end (the
HTML/Javascript pages), but I am only familiar with opening new window and
changing their appearance in Javascript.  Is there a way to do this without
Javascript?  I have contemplated using the <body:onload> in my jsp page, but
have found no way to manipulate the window once it is open (I am working in
IE 5.0).

Any help would be greatly appreciated.

Thanks
Courtney Villegas

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to