First, as you describe the problem, the problem is not with the action
but with the forwarding.  That is, on the first example you want the
action for C to forward to D but in the second example you want the
action for C to forward to E.  Right?  That's what it says anyway.


Second, no matter what the form action attribute says in the struts
<html:form> tag, you can do anything you want with the forwarding in
your action.


Consequently, according to your description, you have no problem.

Jack

On Thu, 4 Nov 2004 05:25:51 +0000 (UTC), Mark <[EMAIL PROTECTED]> wrote:
> 
> Hi Folks,
>          Struts newbie here.  In "standard" html, a form action is optional.
> If not specified, when you hit submit, that form's action "goes to" that same
> URL, thus returns back to that same form.  I effectively want to do the same
> thing in struts.  The reason is I want to reuse some pages for different
> struts action "flows".
> 
> To be clearer, imagine I have 5 pages A.jsp thru E.jsp.  I sometimes want to
> process them A, B, C, D, E.  Other times I want B,C,E,D,A or whatever.  Those
> 2 flows are controlled by 2 different (struts) actions, let's call them act1
> and act2.  If I hardcode the (HTML) form action as act1 in the page, the page
> would go to act1, even through I may be "in" the act2 (struts) action (flow).
> I realize that the first page needs to choose an action, but the rest should
> just keep the same context/URL/whatever without having to hardcode it
> (i.e "leave it blank").  I CAN get this info from the (HTTP) request object,
> but it sure seems like that doing it the hard way. I guess that I could be
> missing some fundamental "strutsism" here, but it sure seems like it would be
> very useful to do what I described.  I have searched all the FAQ's I can find,
> but no luck.
> 
> Please explain to me what "I am not getting".
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to