You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mustapha Essalihe <me...@crim.ca> on 2001/08/08 17:35:19 UTC
Open a new window after an action
Hi every body,
After executing my perform method i want to open a new window to show the
result. I use the html:link tag with attribute target as :
<html:link page="/adminNews.do?action=ViewNews" target="_blank"
paramName="nouvelle" paramId="id" paramProperty="id">
<bean:message key="button.view"/>
</html:link>
this work correctly, when the action is exetcuted a new window is opened
and the content is displayed. The probelm is that i want to open the window
without toolbar, location, status like in javascript window.open() method.
How can i do that with struts ?
Re: Open a new window after an action
Posted by "Craig R. McClanahan" <cr...@apache.org>.
Windows are a "client side" thing, so you deal with them in Struts the
same way you do with static HTML.
* You can specify a "target" attribute on the form, which will cause
the response to be displayed in a window identified by the target
value.
* To open a window with no decorations, you'll need JavaScript that
does a "window.open()" call. You should be able to find info on
any of the tutorial sites about JavaScript.
Craig
On Wed, 8 Aug 2001, Mustapha Essalihe wrote:
> Hi every body,
> After executing my perform method i want to open a new window to show the
> result. I use the html:link tag with attribute target as :
> <html:link page="/adminNews.do?action=ViewNews" target="_blank"
> paramName="nouvelle" paramId="id" paramProperty="id">
> <bean:message key="button.view"/>
> </html:link>
> this work correctly, when the action is exetcuted a new window is opened
> and the content is displayed. The probelm is that i want to open the window
> without toolbar, location, status like in javascript window.open() method.
> How can i do that with struts ?
>
>