Jeff,

Thanks for that info, I will try out this option.


On Wed, 20 Oct 2004 09:50:28 -0400, Jeff Beal <[EMAIL PROTECTED]> wrote:
> To do this, you'll need to create a custom ActionMapping class and use
> the <set-property/> element.
> 
> public class MyActionMapping extends ActionMapping {
>    private String prop1;
>    public String getProp1() { return prop1; }
>    public void setProp1(String newProp1) { prop1 = newProp1; }
>    private String prop2;
>    public String getProp2() { return prop2; }
>    public void setProp2(String newProp2) { prop2 = newProp2; }
> }
> 
> <action className="com.mycompany.action.MyActionMapping"
>          path="/saveSubscription"
>          type="org.apache.struts.actions.DispatchAction"
>          name="subscriptionForm" scope="request" input="/subscription.jsp"
>          parameter="method">
>    <set-property property="prop1" value="Some Value"/>
>    <set-property property="prop2" value="Some Other Value"/>
> </action>
> 
> 
> 
> 
> Hariharan V wrote:
> > Hi ,
> >
> > I was looking for a way to pass multiple parameters  through my action mapping.
> > can  I pass only one parameter or is it possible to pass multiple?
> >
> > for example in this config I can pass only one parameter  {parameter="method"}
> >
> >
> >  <action path="/saveSubscription"
> > type="org.apache.struts.actions.DispatchAction"
> > name="subscriptionForm" scope="request" input="/subscription.jsp"
> > parameter="method"/>
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> 
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-Hari

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

Reply via email to