You can check in the action if the session is new - have a look at the API (If I'm right there is a "session.isNew()" method ...)
Regards, Reinhard > -----Original Message----- > From: vupt vupt [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 3:16 AM > To: [EMAIL PROTECTED] > Subject: how instantiate an Action for each session? > > > Hi, > > I am hoping someone can help me with this. I have created an > Action and > would like an instance of that Action to be instantiated for each new > session that uses the Action. > > For example, take this snippet from my sitemap. > > <map:components> > <map:actions> > <map:action name="JukeBoxAction" src="test.JukeBoxAction"/> > </map:actions> > </map:components> > > <map:pipeline> > <map:match pattern="jukeBox/jukeBox.xmap"> > <map:act type="JukeBoxAction"> > <map:generate src="xmlAction/xmlAction.xsp" > type="serverpages"/> > <map:transform src="jukeBox/jukeBox.xsl"/> > <map:serialize type="html"/> > </map:act> > </map:match> > </map:pipeline> > > > I would like an instance of JukeBoxAction to be created for > each person or > session that matches the above pattern. > > The behaviour right now is that one instance of the > JukeBoxAction object is > created and multiple sessions access the same object instance. > > I would like each session to create and use its own > JukeBoxAction instance. > > Any help with this problem would be most appreciated. > Thanks. > > > > > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > --------------------------------------------------------------------- > 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]
