To do it conditionally, to the best of my knowledge, will require some sort of scripting. You will either have to instead of using target call a Javascript function that opens the window and sets the location accordingly, or dynamically change the target attribute. The later might be a little easier.
If for instance you have say three buttons, and on only one of them do you want to open a new window, set the target attribute of the form to "_self" and attach this to the button: onClick="form.target='_new';" That should do the trick. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, May 24, 2005 12:01 pm, Barnett, Brian W. said: > Thanks Frank. Do you know if it's possible to do something like that > conditionally? I have some controls on the form where I want the new > browser > window to come up and others where I don't. > > -----Original Message----- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 9:49 AM > To: Struts Users Mailing List > Cc: 'Struts Users Mailing List' > Subject: Re: [OT] Open a new browser window when submitting a form > > > Sure... simply add the attribute: > > target="_new" > > to your <form> tag, and your all set. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > On Tue, May 24, 2005 11:27 am, Barnett, Brian W. said: >> Is it possible to open a new browser window to display the results, >> i.e., the response, of a form being submitted? If you've done this, >> would you please provide an example? >> >> TIA, >> Brian Barnett >> >> ********************************************************************** >> ****** >> This email may contain confidential material. >> If you were not an intended recipient, >> Please notify the sender and delete all copies. >> We may monitor email to and from our network. >> > **************************************************************************** >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > **************************************************************************** > This email may contain confidential material. > If you were not an intended recipient, > Please notify the sender and delete all copies. > We may monitor email to and from our network. > **************************************************************************** > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]