• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Opening new Window in Spring

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a form / view that I want to have open a new window when it is submitted and validation is passed. So you fill out a form, click submit, fix any validation errors, hit submit again, and viola -- you have a result in a new window. I found a way to do this in Chrome, but it doesn't work in IE or Firefox. Any ideas?

JSP:



Controller:




It is very simple and basic and the target="_blank" seems to do the trick in Chrome...Any ideas on what I'm doing wrong?

Thanks!
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This has nothing to do with Spring... target="_blank" is just HTML. It's supposed to open the link in a new window, but this is usually considered annoying, so most browsers configure it to open in a new tab, or in the same window. There's usually a configuration option within the browser to set this.
 
Jon Jensen
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I realize that it isn't the preferred design. Is there a way in spring to handle the new windows, or am I just stuck doing a js or html trick.
 
reply
    Bookmark Topic Watch Topic
  • New Topic