I apologize, but I have no clue as to what you're trying to do.  You
presented two mappings and said "what action do I use in my form"?  I
just made a guess.

Maybe if you provide more information, someone (I or someone else)
could help you.  What are you trying to do?  What are the two mappings
for, and what are the separate jsps for?

If your goal is to have one action respond differently based on what
button was clicked on the form, maybe you should look into
LookupDispatchAction.  (Oops, there I go guessing again.)


On Thu, 23 Sep 2004 16:08:40 +0100 (BST), O. Oke
<[EMAIL PROTECTED]> wrote:
> If it is "/updateCustomer", it means I will have to a
> separate jsp for each mapping.  This will defeat the
> purpose of using MappingDispatchAction.  It seems to
> me that your suggestion is only applicable to
> subclasses of Action, not MappingDispatchAction .
> 
> I am asking because I am using MappingDispatchAction
> for my project.
> 
> Thank you.
> 
> 
> 
> --- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > 1.  The action attribute of the form tag should
> > point to the action
> > that will process the form upon submission.  In your
> > case, it looks
> > like it would be "/updateCustomer", but I'm just
> > guessing.
> >
> > 2. I usually just put <html:submit value="Submit"/>
> > or "Save" or
> > something similar there because I usually have only
> > one submit button.
> >  If you're asking because you read something about
> > this button mapped
> > to that method, that's LookupDispatchAction.
> > MappingDispatchAction is
> > a lot easier to deal with when it comes to mapping
> > methods, IMO.  :)
> >
> > Hubert
> >
> > On Thu, 23 Sep 2004 15:26:56 +0100 (BST), O. Oke
> > <[EMAIL PROTECTED]> wrote:
> > > Please help!
> > >
> > > I have a class that extends MappingDispatchAction
> > > class
> > > .  This class has, they are below:
> > >
> > >        <action path="/getCustomer"
> > > type="com.fujimitsu.cargo.gen.CustomerAction"
> > > name="cargoForm"
> > > scope="request"
> > > validate="false"
> > > input=".customerDef.jsp"
> > > parameter="getCustomer">
> > > <forward name="success" path=".customerDef.jsp" />
> > >        </action>
> > >
> > >        <action path="/updateCustomer"
> > > type="com.fujimitsu.cargo.gen.CustomerAction"
> > > name="cargoForm" scope="request"
> > > validate="true"
> > > input=".customerDef.jsp"
> > > parameter="updateCustomer">
> > > <forward name="success" path=".customerDef.jsp" />
> > >        </action>
> > >
> > > My question:
> > > 1.  In my JSP, what what should be the value of
> > the
> > > action attribute of html:form
> > >   i.e. <html:form action="??????????">  (i.e.
> > which
> > > mapping should be specified here)?
> > >
> > > 2.  what should the code of the button for
> > excuting
> > > getCustomer method be?
> > >    i.e. <html:submit ???????????????
> > >
> > > Thank you.
> > >
> > >
> >
> ___________________________________________________________ALL-NEW
> > Yahoo! Messenger - all new features - even more fun!
> >  http://uk.messenger.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> 
>                
> 
> 
> ___________________________________________________________ALL-NEW Yahoo! Messenger 
> - all new features - even more fun!  http://uk.messenger.yahoo.com
>

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

Reply via email to