struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] How can i open new window and forward request to another action class
Date Mon, 02 Apr 2007 19:26:53 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ashish,

Ashish Kulkarni wrote:
> 3 If the task is ok then this action class should forward the request to
> another action class and also open a new browser window
>
> How can i do step 3,

The only (semi) reliable way to do this is with javascript.

Are you saying that you want to submit a form, refresh the page /and/
popup a new window containing a third page?

Your form handler should return a page with a <body> element like this:

<body onload="var wnd=window.open('target-url'); wnd.focus();">

This will load your popup. This kind of user experience doesn't sound
very good IMO. :(

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGEVj99CaO5/Lv0PARArNTAJ9+vrlKJyMz+a1/LqXV18HXPp1bVgCfQcKt
7iGSHRDLS1U/WJ2KfVyIsGw=
=wymr
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message