What if I'm using the app, and I want to open the link in a new tab
instead?  Or how about, I want to open it in the same tab and just use
the back button once I'm done looking at the PDF?

-Brian



On Tue, Mar 23, 2010 at 8:02 AM, Celinio Fernandes <cel...@yahoo.com> 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

Reply via email to