Target blank isn't necessarily available (e.g. writing the site in xhtml 1.1)
-Brian On Tue, Mar 23, 2010 at 10:06 AM, Robert Graf-Waczenski <r...@lsoft.com> wrote: > Hi! > > How about using > > target="_blank" > > instead of onclick? > > Robert > > Gustavo Felisberto schrieb: >> >> Hello, >> >> This is a JS thing. Try: >> onclick="javascript:window.open('%{genererRapportPDF}'); return false;" >> >> Gustavo >> >> -----Mensagem original----- >> De: Celinio Fernandes [mailto:cel...@yahoo.com] Enviada: terça-feira, 23 >> de Março de 2010 13:03 >> Para: Struts Users Mailing List >> Assunto: [Struts 2.1.8] s:url : how to open in a new window ? >> >> 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 >> >> >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org