You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2007/04/02 21:26:53 UTC
Re: [OT] How can i open new window and forward request to another
action class
-----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