You can extend ActionMapping to include whatever property you need. (1) Specify your ActionMapping class in the web.xml
<init-param> <param-name>mapping</param-name> <param-value>com.mycompany.mypackage.MyActionMapping</param-value> </init-param> (2) Use <set-property property="yourProperty" value="yourValue" /> to set it in the ActionMapping. (3) In your Action, cast the mapping parameter to your mapping class, and retrieve your property. See also http://www.mail-archive.com/struts-user@jakarta.apache.org/msg08755.html Marcelo Caldas wrote: > > I'm already using the Parameter="..." for something else... > Any other Ideas? > ----- Original Message ----- > From: "Steve Bendiola" <[EMAIL PROTECTED]> > To: ""Struts Users Mailing List"" <[EMAIL PROTECTED]> > Sent: Monday, November 26, 2001 12:49 PM > Subject: RE: <init-param> for Actions. > > > You can add a parameter attribute under your action in the struts-config > file and retrieve it in the perform method of that action. > > > > String parameter = mapping.getParameter(); > > > > "Marcelo Caldas" <[EMAIL PROTECTED]> wrote: > > > > >Hi, > > >I was wandering if there's a way to declare a init-param for an action in > the same way that we declare for servlets... > > > > > >I know that I can declare this init-param for my ActionServlet, but then > the parameter is available for all the actions that I'm creating, while all > I want is to have it on one action only. > > > > > >any suggestions? > > > > > >Regards, > > >Marcelo. > > > > > -- > > > > > > > > > > __________________________________________________________________ > > Your favorite stores, helpful shopping tools and great gift ideas. > Experience the convenience of buying online with Shop@Netscape! > http://shopnow.netscape.com/ > > > > Get your own FREE, personal Netscape Mail account today at > http://webmail.netscape.com/ > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>