2

I'm developing a struts2 project. In my struts.xml, I have a redirect to a dynamic page http://myurl.de/2012-07-20.html like described here: How to do dynamic URL redirects in Struts 2?.

But I want the new page to be shown in a new tab. Is there a way to do this in the struts.xml file?

I found some JavaScript solutions but I would prefer to do it in the struts.xml

Community
  • 1
  • 1
daskai0815
  • 175
  • 1
  • 2
  • 7

1 Answers1

1

when you call the url that should redirect to new pop up window, by using window.open() in javaScript. or by specifying target="_blank" in the form tag, this will open the redirected page in new pop up window. about the new tab, you cannot control target="_blank" will open in new popup or new tab because this is decided by the browser you are using whether it is IE, FF or chrome.

you can configure your browser to open in new tab instead of new window. through the browser options

Druid
  • 6,423
  • 4
  • 41
  • 56
user1512999
  • 237
  • 2
  • 6
  • 19