See: http://wiki.cocoondev.org/Wiki.jsp?page=XSPAction
It provides two ways to set a sitemap parameter (there are other ways as well :) The static way (you could wrap this in a java "if"): <action:set-result name="parameter-name" value="parameter-value"/> Example: <action:set-result name="uri" value="uri-to-redirect-to"/> The dynamic way: <action:set-result> <action:param name="name"><xsp:expr>getName()</xsp:expr></action:param> <action:param name="value"><xsp:expr>getValue()</xsp:expr></action:param> </action:set-result> Example: <action:set-result> <action:param name="name">uri</action:param> <action:param name="value"><xsp:expr>name-of-java-string-holding-uri-to-redirect-to</xsp:expr></action:param> </action:set-result> Tim >>> [EMAIL PROTECTED] 02/20/03 03:53PM >>> Excellent. Thank you. Now, to push my luck, where is documentation on how to set a sitemap paramter in an XSP? Do you use <xsp:logic>sitemapParams.put(param_name, param_value)</xsp:logic>? Is there an xsp logicsheet tag for setting sitemap parameters? Wayne >-----Original Message----- >From: Timothy Larson [mailto:[EMAIL PROTECTED]] >Sent: Thursday, February 20, 2003 12:09 PM >To: [EMAIL PROTECTED] >Subject: RE: redirection in XSP? > > >Sorry for the typo, should be: >Have the XSP-Action set a sitemap parameter, such as "uri", >and then have this in your sitemap: > <map:act src="somepage.xsp" type="xsp-action"> > <map:redirect-to uri="{uri}"/> > </map:act> > >Tim > >>>> [EMAIL PROTECTED] 02/20/03 10:48AM >>> >I have used the XSP-as-action method to do redirection in the >sitemap (based >on the requestor's url), but one limitation is that it only >allows a binary >choice: if the action succeeds go to one url, if the action >fails go to a >different url. How can a pipeline be set up to allow more >than just two >possible redirect pathways? > >Wayne > > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>