my dog learned polymorphism*
The moose likes Struts and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ""target=_blank" makes validation errors appear in new window" Watch ""target=_blank" makes validation errors appear in new window" New topic

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

Alex Panares

Joined: Aug 27, 2009
Posts: 1

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.
subject: "target=_blank" makes validation errors appear in new window
Similar Threads
why the same URL shows different page in JSF
Display error message using validate?
hide radio button
Getting values from properties in validate-using multiple message-resources in struts
problem in reloading a parent page