Re: Doing string operations over sitemap values

2008-02-15 Thread Andy Stevens
On 15/02/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > As a policy for this website we are trying avoid doing any custom java > programming, only little tiny features added here and there to cocoon > itself, and clearing some minor gotchas i've found in my way but apart from > that, add

Re: Doing string operations over sitemap values

2008-02-15 Thread Joerg Heinicke
On 15.02.2008 07:09, [EMAIL PROTECTED] wrote: None the should work as JXPath doesnt have access to arbitrary Classes, i'm correct on this? I doubt it, but I would at least try it out. Something like java.lang.System.exit(1) (don't do this on a production server ;)). Even if that does not wor

RE: Doing string operations over sitemap values

2008-02-15 Thread listas
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 14, 2008 2:07 PM > > It's JXPath, not JXTemplate. Does it evaluate Java calls at all? > > If your example really works, > http://localhost:8080/b/nasty.java.call() > will as well. > None the should work as JXPath doe

RE: Doing string operations over sitemap values

2008-02-15 Thread listas
x27;m only declaring String i fail to view a bad use where one can use this tiny traslation to break the site.. I'm converting - to spaces and reverse.. Saludos, Ignacio J. Ortega > -Original Message- > To: users@cocoon.apache.org > Subject: Re: Doing string operations o

Re: Doing string operations over sitemap values

2008-02-14 Thread Tobia Conforto
Joerg Heinicke wrote: Nacho (Derecho.com) wrote: "{request:translate('{1}','-','')}" the user might go to: http://localhost:8080/b/hello',nasty.java.call(),'world It's JXPath, not JXTemplate. Does it evaluate Java calls at all? If your example really works, http://localhost:8080/b/nasty.java

Re: Doing string operations over sitemap values

2008-02-14 Thread Joerg Heinicke
On 14.02.2008 07:42, Tobia Conforto wrote: Nacho (Derecho.com) wrote: * I have this URL "http://localhost:8080/b/menores-de-edad"; * In sitemap i have a match like "b/**" * I need to do replace "-" in {1} to spaces * I do this using an input module inheriting from AbstractJXPathModule, and usi

Re: Doing string operations over sitemap values

2008-02-14 Thread Tobia Conforto
Nacho (Derecho.com) wrote: * I have this URL "http://localhost:8080/b/menores-de-edad"; * In sitemap i have a match like "b/**" * I need to do replace "-" in {1} to spaces * I do this using an input module inheriting from AbstractJXPathModule, and using a xpath like expression, "{request:tran

Doing string operations over sitemap values

2008-02-14 Thread Nacho (Derecho.com)
Hola a todos: I've needed to do some of string transformations over sitemap parameters obtained from parts of a url, and i'm lookng for the smart way to it, rigth now i have done it using the method described below: * I have this URL "http://localhost:8080/b/menores-de-edad"; * In sitemap i have