Martin Sorry perhaps I did not explain the issue well enough...
The problem is that there is no code (at least not in the .jsp) to fill in 'sometarget'.. I do not know what the target should be until after I evaluate the submitted ActionForm. Others have suggested that I use javascript in a target page to redirect the response to the 'correct' target - but this seem very un-struts like to me - surely there is a better way. Actually, I think part of my problem is a lack of understanding about how the target="sometarget" is evaluated - does the server have any control over this - or is it purely a client side fiunction? - If it is purely client side then I guess that javascript is the only option. db -----Original Message----- From: Laconia Data Systems [mailto:[EMAIL PROTECTED] Sent: 09 December 2004 21:36 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: [Spam] Conditional forward to target page on form submittal David- Cant make an intelligent decision without looking at your code which fills in 'sometarget' Martin- ----- Original Message ----- From: "David Bolsover" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 09, 2004 4:16 PM Subject: [Spam] Conditional forward to target page on form submittal > > I need to extend an existing application with a conditional forward to a specified page following form submittal. > > For example forward name="top" path="/toppage.jsp" ... needs to forward to named target page "top" > forward name="side" path="/sidepage.jsp" ... needs to forward to named target page "side" > > Now this kind of functionality is simple to achive if you can put code like: > <html:form action="/someAction.do?method=somemethod" target="sometarget" > > in your .jsp page. > > My problem is that I do not know which is the correct target page until AFTER the form has been submitted. > > Ideas please > > db > ======================================================= > This message has been scanned for viruses and dangerous > content using Vet Anti-Virus Protection and is believed > to be clean. > ======================================================= > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ======================================================= This message has been scanned for viruses and dangerous content using Vet Anti-Virus Protection and is believed to be clean. ======================================================= --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]