cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chitharanjan Das" <c...@accordiasys.com>
Subject RE: Global parameters
Date Tue, 28 May 2002 21:53:27 GMT
You can do the following
Encompass the pipeline with an action say
	<map:pipeline>
	<!-- Specific XSP generation pipeline -->
	<map:act type ="parametersSet">
		<map:parameter name="global-context-root"
value="/accordianew" />						
		<map:parameter name="global-application-dir"
value="C:\Projects\Accordia\Development\Rating\src\testcases" />	
		<map:match pattern ="......"
			<map:parameter name="application-home-dir"
value="{../global-application-dir}"/>
		....
		</map:match>					
		<map:match pattern ="......"
		....
		</map:match>					
		<map:match pattern ="......"
		....
		</map:match>					
	</map:act>
	</map:pipeline>


sitemap entry for action parametersSet
<map:actions>

    <map:action  type="parametersSet" src="
src="com.accordia.action.handlers.GlobalParametersSetHandler" />
...
</map:actions>



Hope it was helpful .....

Regds,
Chiths











-----Original Message-----
From: Geoff Howard [mailto:ghoward@crosswalk.com] 
Sent: Tuesday, May 28, 2002 9:56 AM
To: 'cocoon-users@xml.apache.org'
Subject: RE: Global parameters

I believe that there is currently no way to do this, but there happened
to
be a similar proposal recently on the dev mailing list.  You should be
able
to find the discussion here: 
http://marc.theaimsgroup.com/?t=102249244800002&r=1&w=2

Geoff Howard


-----Original Message-----
From: Eduardo Godoy [mailto:egodoy@tekchile.cl]
Sent: Tuesday, May 28, 2002 12:49 PM
To: cocoon-users@xml.apache.org
Subject: Global parameters


Hi Folks,
    I'd like to know how to define a "global" parameter for all my
pipeline
...
for example... the "Soap Host name" ... this parameter has to be used by
XSP
and Actions.

Right now I have to define the parameter for each <map:act entry
and for each <map:match.

so, maybe this is not the best way to define the global parameters ...
any
idea? or something to read ?


Thanks
Eduardo.

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message