You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "jwwoger@chello.at" <jw...@chello.at> on 2005/02/02 21:30:01 UTC

Re: open new window form struts action

Ashish Kulkarni wrote:

>Hi
>can we open a new window from action class?
>i dont want to use 
><form action="display.jsp" method="post"
>target="_blank">
>as i want to be able to open this new window from any
>form( i have a menu option which can be executed from
>any page of my website)
>Basically i have a java script which looks like this
>TheNewWin = window.open(url, '',
>config='height='+height+', width='+width+',
>toolbar=no, menubar=no,scrollbars=no,resizable=no,
>location=no,directories=no, status=no
>,offscreenBuffering=false');
>
>Ashish
>  
>

Try:

<form action="/yourAction" . . . . . target="someName" 
onsumit="window.open('',this.target, 
'menubar=no,resizable=no,....,status=no');return true;">

    Wolfgang

>
>		
>__________________________________ 
>Do you Yahoo!? 
>Meet the all-new My Yahoo! - Try it today! 
>http://my.yahoo.com 
> 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>


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