Hello, careful with the "parameter" if you're using DispatchAction in your application: it's _reserved_ in that case as it's related to determining the method to call on your Action (check out the DispatchAction doc for more info).
For example, if your Action looks like MyAction extends DispatchAction +init(...) +createRecord(..) +updateRecord(..) the mapping.getParameter() will need to identify the request variable (eg "command") that indicates what method to call. If you set in struts-config.xml "parameter=command" then Strus will check in the request parameters: "command=init" will call MyAction.init(...) "command=createRecord" will call MyAction.createRecord(...) and so on... HTH Thanks. Andrej > -----Original Message----- > From: Jon.Ridgway [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 13, 2001 8:18 AM > To: 'Struts Users Mailing List' > Subject: RE: ActionMappings parameter - field > > > Hi Tuomo, > > The mapping parameter is an arbitrary string associated with > a mapping that > can be accessed via mapping.getParameter (). > > Jon. > > -----Original Message----- > From: Tuomo Syv�nper� [mailto:[EMAIL PROTECTED]] > Sent: 13 December 2001 12:45 > To: [EMAIL PROTECTED] > Subject: ActionMappings parameter - field > > Hi, > What is the parameter - field for in the ActionMapping class ? > I was thinking about storing some info there that I use to communicate > some things between my actions. Is it safe to just call > ActionMapping.setParameter and set its value or should it be > put inside > a synchronized block ? > > /tuomo > > > -- > 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]> >

