cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jos Snellings <Jos.Snelli...@pandora.be>
Subject Re: sitemap
Date Thu, 10 Mar 2011 09:31:59 GMT
To reply again (with the some delay ...):
No, the old

{request:serverName}

does not work anymore in 3. The new syntax is:
<servlet:redirect-to 
uri="http://{jexl:cocoon.request.serverName}/herein/thesaurus/editor/workspace"/>

Same with the other request attributes. This is not documented, nor to 
be found in the examples. Hence this mail.
Not too difficult to guess, though!

Any plans to release cocoon 3? Is cocoon-3 like the never ending Bob 
Dylan tour?

Best regards,
Jos


On 01/20/2011 06:22 PM, Laurent Medioni wrote:
> Hello,
> The old
> uri="{request:scheme}://{request:serverName}:{request:serverPort}{reques
> t:contextPath}/secure/loginpage"
> Using org.apache.cocoon.components.modules.input.RequestModule does not
> work anymore in 3 ?
> Laurent
>
> -----Original Message-----
> From: Jos Snellings [mailto:Jos.Snellings@pandora.be]
> Sent: jeudi 20 janvier 2011 14:07
> To: users@cocoon.apache.org
> Subject: sitemap
>
> Hello,
>
> Cocoon 3:
> Is there an expression for the servername in the sitemap?
> I am looking for:
>
> <map:handle-errors>
> <map:select value="{jexl:cocoon.exception.class.name}">
> <map:when contains="NoMatchingPipelineException">
> <map:generate src="error-handling/404.xml" />
> <map:serialize type="xhtml" status-code="404" />
> </map:when>
> <map:when ends-with="AnonymousAccessException">
> <servlet:redirect-to
> uri="https://{server}/myapplication/secure/loginpage" />
> </map:when>
>
> Thanks!
> Jos
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


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


Mime
View raw message