Hi Jack

Yes I agree, the Action can easily determine which of several pages to present 
back to the user - my problem is that I need to present it back to a specific 
named target page - maybe even a new one - and not back to the original page 
used to submit the form.

What I can't figure out is how to return to a specifc named target page.

db

-----Original Message-----
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: 09 December 2004 23:01
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Conditional forward to target page on form submittal


Hi, David,

This seems to be a fairly easy problem if there are no considerations
other than these.  If you don't know which response page you want to
send make until after you receive a request, then you just make the
decision during the execution of the Action with different
ActionForward objects.

Jack


On Thu, 9 Dec 2004 21:16:11 -0000, David Bolsover <[EMAIL PROTECTED]> wrote:
> 
> 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]
> 
> 


-- 


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---------------------------------------------------------------------
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]

Reply via email to