Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"target=_blank" makes validation errors appear in new window  RSS feed

Alex Panares
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a page where I want a new window to open when the page is submitted if there are no validation errors. If there are errors, then I just want to redisplay the page. Adding "target=_blank" to the <html:form> tag causes the errors to appear in the new window. How can I accomplish this?

I also have another question. I have a ActionForm for a page where the user selects a radio button. On another page, I want to display readable text for the radio button that they selected. It would be simple to place a method getReadableText() in the ActionForm but that logic doesn't belong there correct? What is the best practice?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!