Thanks Erik,
            That's exactly what I am asking.  There MUST be some standard 
struts bean that I can access that has the current action the page flow "is 
in".  I can see the taglib to look up a set of action forwards based on a URL.  
What I want is the the "action part" of the current URL so that I can make that 
the form action.  If not, I can setup my own as you suggest.  Maybe that's a 
better idea anyways, as it gives me more control other the situation.  

Mark


Erik Weber <erikweber <at> mindspring.com> writes:

 
 I may not fully understand your problem, but won't using a variable to 
 render your form action solve your problem?
 
 For example:
 
 <html:form action="${someBean.someProperty}" . . . >
 
 someBean being some object in some scope that is available to the JSP 
 page, someProperty being the action URL which was set by logic in the 
 page prep (Action) code?
 
 Erik
 
 
 Mark 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]

Reply via email to