Michael Edge wrote: >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% >
<xsp-action:set-result name="report-url"> <xsp-action:param name="value"><xsp:logic>"construct" + "url"</xsp:logic></xsp-action:param> </xsp-action:set-result> Vadim >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 > > --------------------------------------------------------------------- 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]>