On Fri, 2003-01-17 at 19:24, Ed Robbins wrote:
> Alex,
> 
> My first question is... Is AccountManagerActiona subclass of
> DispatchAction?  I'd also recommend renaming your parameter to something
> like method, action is used all over the place and it can lead to
> confusion. 

thanks for the advice, yes AccountManagerAction is a subclass of
DispatchAction, and has two dispatch methods modify(...) and
update(...).  I also know that the action is partially setup correctly
because if i call account.jsp and submit to manage.do?action=update,
update(...) is called in the AccountManagerAction.  like i mentioned
before it is most likely related to my misunderstanding of validation
and input, maybe i need to break this out into two actions.  btw, my
logic behind this setup is that i can reuse account.jsp to both create
and edit accounts.  i can submit more of my code if it would help anyone
track down this issue.

>  
> 
> You haven't overriden the execute or the perform method have you?  Those
> are needed to call the method your looking for.

no.

> 
> Just my .02 cents.
> 
> Ed
> 
> On Fri, 2003-01-17 at 17:34, Alex Winston wrote:
> > i am attempting to structure create/modify/update workflow within my
> > application and have created the following action.
> > 
> > <action
> >     path="/manage"
> >     parameter="action"
> >     type="com.christianity.account.struts.action.AccountManagerAction"
> >     name="accountValidatorForm"
> >     scope="request"
> >     input="/account.jsp">
> >             <forward name="modify"
> >                     path="/account.jsp"
> >                     redirect="false"/>
> >             <forward name="update"
> >                     path="/account_update.jsp"
> >                     redirect="false"/>
> > </action>
> > 
> > my first question is as follows:
> > it appears that if i call manage.do?action=modify that the modify method
> > in AccountManagerAction never gets called.  is this the expected
> > behavior when using validation?  i am attempting to load the account
> > within the modify method and set the accountValidatorForm values which
> > in turn can be loaded within the account.jsp page, but if the method is
> > not called then this is not possible.
> > 
> > my second question is:
> > if my action is setup incorrectly does anyone have a suggestion on how i
> > could restructure it.
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Alex Winston <[EMAIL PROTECTED]>


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

Reply via email to