This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Struts and the fly likes New browser window in struts?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "New browser window in struts?!" Watch "New browser window in struts?!" New topic

New browser window in struts?!

RobertC RobertC

Joined: Aug 07, 2006
Posts: 1
How to open a new browser window in struts?
I use actionMapping.findForward() in the Action-class to shows the results in the same window. But how can I display the results in the new window?!
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
You don't spawn new windows via struts. You need to use javascript to open a new window with a given url.

If it is from a form submittal, you can use target="_blank".
[ August 07, 2006: Message edited by: Dom Lassy ]
It is sorta covered in the JavaRanch Style Guide.
subject: New browser window in struts?!