• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic