On Fri, 2004-02-27 at 16:47, Stefan Geelen wrote: > Hi, > > I would like to dynamically define a parameter of a serializer, like: > > > <map:serializer logger="test.serializer.ml2pdf-website" > mime-type="application/pdf" name="ml2pdf-webpages" > src="com.test.connector.cocoon.testSerializer"> > <systemid>context://test</systemid> > </map:serializer> > > I need to know the context or realPath of the cocoon environment so I do not > need to define the parameter (systemid) hardcoded, like: > > <systemid>file:/c:/cocoon/test</systemid> > > Appareantly Cocoon does not see the context:/ here as a variable. > > How can this be solved ? >
You could code it in your serializer: context.getRealPath() or if you donīt have your context, ObjectModelHelper.getContext(objectModel).getRealPath().... Hope this helps, Eduard > Regards, > > Stefan > > _________________________________________________________________ > MSN Search, for relevant search results! http://search.msn.be > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- ||/\ Eduard Drenth |/ \ [EMAIL PROTECTED] / \ / \ /| _ |\ | | | | | | | | -------- \ \ \ \ \ \ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]