File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 ]
I agree. Here's the link:
subject: New browser window in struts?!
It's not a secret anymore!