Thanks, that works :) --- On Tue, 3/23/10, Florin Cazacu <florin.caz...@cst.ro> wrote:
From: Florin Cazacu <florin.caz...@cst.ro> Subject: Re: [Struts 2.1.8] s:url : how to open in a new window ? To: "Struts Users Mailing List" <user@struts.apache.org> Date: Tuesday, March 23, 2010, 9:36 AM Hello, You can avoid opening of the link in the current window removing the href attribute from <s:a> tag. Florin Cazacu. Celinio Fernandes wrote: > Hi, > I am using Struts 2.1.8. > In a JSP, I have a link which calls an action. I want to open that link in a > new window. The following code works : > <s:url id="genererRapportPDF" action="affichePDF" windowState="" /> <s:a >href="%{genererRapportPDF}" >onclick="javascript:window.open('%{genererRapportPDF}');">Generation</s:a> > The problem is that it also calls the action / opens the link in the current >window. > How to avoid that ? > Thanks. > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org