Thanks Litrik, I have written my action and it works 95%. I have one small, simple problem. My sitemap entry is below, and below that is an abbreviated version of my XSP. The XSP constructs a URL dynamically and needs to pass this back to the XSP. How do I do this? It works fine if the <xsp-action:set-result name="report-url" value="{url}"/> has a hardcoded URL in the value attribute, but I need to pass in a variable. If I can get this to work, it will be 100%
Regards Michael <map:match pattern="request"> <map:act type="xsp-action" src="docs/ReportURLConstructor.xsp"> <!-- This part is called when the action executes <action:set-success/> --> <map:redirect-to uri="{url}"/> <map:serialize/> </map:act> <!-- This part is called when the action executes <action:set-failure/> --> <map:generate type="serverpages" src="docs/ReportURLConstructor.xsp"/> <map:serialize/> </map:match> <?xml version="1.0" encoding="ISO-8859-1"?> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-action="http://apache.org/cocoon/action/1.0" > <page> <xsp:logic> String url = "http://www.microsoft.com"; <xsp-action:set-result name="report-url" value="{url}"/> <xsp-action:set-success/> </xsp:logic> </page> </xsp:page> ----- Message from "Litrik De Roy" <[EMAIL PROTECTED]> on Thu, 5 Sep 2002 19:56:20 +0200 ----- To: <[EMAIL PROTECTED]> Subject: Re: XSP Redirect in Cocoon 2 I have documented how to write an action using XSP at http://outerthought.net/wiki/Wiki.jsp?page=XSPAction That should get you started. Litrik De Roy www.litrik.com -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- 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]>