struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Kindler" <kindl...@arcor.de>
Subject AW: AW: Action output in new window without menu/toolbar
Date Wed, 20 Sep 2006 12:58:09 GMT
Thank you Balwinder and Patil!

For all those who are as stupid as I am the solution is very simple:

<form action="URL2StrutsAction.do" 
      onsubmit='open("", "outputWindow", "menubar=false, toolbar=false");'
      target="outputWindow">

Martin

> -----Urspr√ľngliche Nachricht-----
> Von: Balwinder [mailto:balwinderk@saigun.com] 
> Gesendet: Mittwoch, 20. September 2006 14:04
> An: Struts Users Mailing List
> Betreff: Re: AW: Action output in new window without menu/toolbar
> 
> 
> Martin Kindler wrote:
> 
> >Thanks,
> >but how do I use it with a form?
> >
> >I have in my html-code
> ><form action="URL2StrutsAction.do" target="_blank">
> >
> >Martin
> >
> >  
> >
> >>-----Urspr√ľngliche Nachricht-----
> >>Von: Balwinder [mailto:balwinderk@saigun.com]
> >>Gesendet: Mittwoch, 20. September 2006 13:17
> >>An: Struts Users Mailing List
> >>Betreff: Re: Action output in new window without menu/toolbar
> >>
> >>
> >>Martin Kindler wrote:
> >>
> >>    
> >>
> >>>Hi
> >>>
> >>>I am using Struts 1.2.x and try to achieve the following:
> >>>on a page I have a form whose action calls a Struts action.
> >>>      
> >>>
> >>The result
> >>    
> >>
> >>>shall be displayed in a new window. No problem so far. 
> But: The new 
> >>>window should have no menu- and toolbar.
> >>>
> >>>Is this possible? and if, how?
> >>>
> >>>Martin
> >>>
> >>>
> >>>-----------------------------------------------------------
> ----------
> >>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>>For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>Hi,
> >>
> >>Use javascript function,
> >>window.open(URL,windowName,"menubar=no,toolbar=no");.
> >>
> >>Happy coding!!
> >>Balwinder Kumar
> >>
> >>------------------------------------------------------------
> ---------
> >>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
> >
> >  
> >
> If  iam getting your problem in a right way then you might be calling 
> this action on some event (ie on submit of some form or 
> clicking on some 
> view link or so).
> 
> On that very event call javascript and use this code.
> 
> Happy Coding!!
> Balwinder
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message