aspose file tools*
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
Author

New browser window in struts?!

RobertC RobertC
Greenhorn

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.

http://www.devguru.com/Technologies/ecmaScript/quickref/win_open.html

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: http://aspose.com/file-tools
 
subject: New browser window in struts?!