struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Míguel Ángel Mulero Martínez <miguel-angel.mul...@mad.tecsidel.es>
Subject RE: Passing an argument from struts-config.xml to an action.
Date Thu, 28 Nov 2002 12:11:01 GMT
Use the DispatchAction. See the documentation.

> -----Mensaje original-----
> De: ROSSEL Olivier [mailto:olivier.rossel@airbus.com]
> Enviado el: jueves, 28 de noviembre de 2002 13:08
> Para: 'Struts Users Mailing List'
> Asunto: RE: Passing an argument from struts-config.xml to an action.
>
>
> Sure.
> From a user point of view, I want to change slightly the bahviour
> of my Action depending on a parameter.
> I presume it is not possible.
>
> > -----Message d'origine-----
> > De: Gemes Tibor [mailto:gemes@regens.hu]
> > Date: jeudi 28 novembre 2002 13:03
> > À: Struts Users Mailing List
> > Objet: Re: Passing an argument from struts-config.xml to an action.
> >
> >
> > 2002. november 28. 12:13 dátummal ROSSEL Olivier ezt írtad:
> > > I read on the list that it is impossible to pass a property from
> > > struts-config.xml
> > > to an Action.
> > >
> > > Example:
> > >
> > > <action
> > > 	 .... >
> > > <set-property name="foo" value"bar"/>
> > > </action>
> > >
> > > except if you overload the ActionMapping used for that statement.
> > >
> > > Is it still the case in Struts-1.1 ?
> >
> > set-property calls a setter. So unless you have the setFoo on the
> > ActionMapping you cannot use it.
> >
> > How do you expect the ActionMapping to handle a value for
> > which it is not
> > prepared to receive? set-property is there for cases in which
> > you want to
> > extend the ActionMapping (and other classes) and you want to
> > pass your
> > mapping a parameter (which is not declared in its parent),
> > and still want to
> > conform the DTD of the struts-config.
> >
> > Tib
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-user-help@jakarta.apache.org>
> >
> >
> > This mail has originated outside your organization,
> > either from an external partner or the Global Internet.
> > Keep this in mind if you answer this message.
> >
>
> This e-mail is intended only for the above addressee. It may contain
> privileged information. If you are not the addressee you must not copy,
> distribute, disclose or use any of the information in it. If you have
> received it in error please delete it and immediately notify the sender.
> Security Notice: all e-mail, sent to or from this address, may be
> accessed by someone other than the recipient, for system management and
> security reasons. This access is controlled under Regulation of
> Investigatory Powers Act 2000, Lawful Business Practises.
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message