Leon,
 
You don't need to specify 'input' and 'name'?

Leon Rosenberg <[EMAIL PROTECTED]> wrote:
I think you need following:

type="segev.CreateFormAction" 
scope="request" 
>



In execute of CreateFormAction you can do your initialization.



> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:user-
> [EMAIL PROTECTED] Im Auftrag von Eli
> Segev
> Gesendet: Donnerstag, 6. Januar 2005 23:40
> An: Struts Users Mailing List
> Betreff: Re: Attributes Initialization
> 
> I am aware that my 'redirect' does not make sense. But, this is a
> different issue. My question is why the initial action does not invoke
> the 'execute' method. It has to do with redirect, but how? Having two
> actions, one for initialization and one for submit will not resolve this
> situation, since the 'execute' method is not called. I am still looking
> to find out what I am doing wrong about this.
> 
> index.jsp redirect to 'submit', which is defined as a global forward as
> 'submit.do'. I can define it as 'submit.jsp', but there is no difference
> in behavior.
> 
> 
> 
> Wendy Smoak wrote:
> 
> From: "Eli Segev"
> > Here is the portion that defines the action:
> >
> > > type="segev.SubmitAction"
> > input="/submit.jsp"
> > name="submitForm"
> > scope="request"
> > validate="true">
> >
> >
> >
> 
> (Why have three different forwards pointing at the same page? No matter if
> you call mapping.getInputForward(), mapping.findForward("success") or
> mapping.findForward("failure"), you're going to end up at the same place!)
> 
> > Obviously this definition does not make the initial action go through
> the
> 'execute' method.
> > I don't know what changes are necessary here. Any suggestions?
> 
> If you're going to do it this way, with a separate Action for submit, then
> I
> suppose you'd need a PrepareAction to go with it.
> 
> > The starting page is index.jsp that looks like this:
> >
> >
> 
> And this redirects them... where? Is it submit.do or submit.jsp that
> appears in the browser? (Since it's a redirect, the browser URL should
> change.)
> 
> --
> Wendy Smoak
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to