File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes New browser window in struts?! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: New browser window in struts?!
 
Similar Threads
javascript closing windows
Display results in a popup window
Opening a new browser window in Action
problem with tiles
Servlet session