File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New browser window in struts?!

 
RobertC RobertC
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 181
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic