Re: sendmailtransformer problem

2008-02-27 Thread Andy Stevens
stevecam wrote: Hello, I am trying to make use of the sendmailtransformer to send an email 'site feedback' message to the site manager. I'm copying the documentation but get the message rejected by the SMTP server. This seems to be a configuration issue on the SMTP server, however if I try to s

RE: Cocoon, JX Temaplte and UTF-8

2008-02-27 Thread Magnus Haraldsen Amundsen
Yes, I tried the .toString("UTF-8), but that gave the same result. I've also tried to create the String using: String myUTF8String = new String(byteArrayOutputStream.toByteArray(), "UTF-8"); Maybe this could be solved by using some other Output/InputStream or something? -Opprinnelig melding

Re: Cocoon, JX Temaplte and UTF-8

2008-02-27 Thread Kjetil Kjernsmo
On Wednesday 27 February 2008 21:21:09 Martin Heiden wrote: > MHA> It's vital that the UTF-8 encoding is kept, and Java String doesn't > MHA> support that. > > AFAIK Java Strings are UTF-8 too. If you deal with different > character sets, you've got to convert the data when constructing or > output

Re: Cocoon, JX Temaplte and UTF-8

2008-02-27 Thread Martin Heiden
Hi! Wednesday, February 27, 2008, 5:20:28 PM, you wrote: MHA> I want to pass the content of that Model (what comes out of the write()) MHA> to the pipeline and display it in a template, jx.xml, using value="#{result-list}" xmlize="true" MHA> xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"/>

Cocoon, JX Temaplte and UTF-8

2008-02-27 Thread Magnus Haraldsen Amundsen
Hello, I use Jena to read a RDF Model fra a PostgreSQL database, the Model has a method write() that writes to an OutputStream. I want to pass the content of that Model (what comes out of the write()) to the pipeline and display it in a template, jx.xml, using http://apache.org/cocoon/temp

Re: Cocoon 2.2 - Webapp?

2008-02-27 Thread Luca Morandini
Edward S wrote: yes...there is a META-INF as welland inside its subdirectories thrs a pom.xml and pom.properties yes, it runs via jetty:run So it should run when deployed under Tomcat as well. quick question: where does the sitemaps reside...when we build the war? Under COB-INF, but i

Re: Cocoon 2.2 - Webapp?

2008-02-27 Thread Edward S
yes...there is a META-INF as welland inside its subdirectories thrs a pom.xml and pom.properties yes, it runs via jetty:run quick question: where does the sitemaps reside...when we build the war? -S2. On 2/26/08, Luca Morandini <[EMAIL PROTECTED]> wrote: > > Edward S wrote: > > > > Now if

Re: jetty

2008-02-27 Thread Andre Juffer
>Carsten Ziegeler wrote: Andre Juffer wrote: Now, I agree with Joerg that this code looks very suspicious; I guess your intention is to catch an exception while dealing with the data in "do_something_with(data)". Correct. The problem with the code above is that if an exception occurs in f

Re: jetty

2008-02-27 Thread Andre Juffer
Joerg Heinicke wrote: On 27.02.2008 08:15, Andre Juffer wrote: Is it only me wondering how this can work at all when there is an exception? In that case finished is NEVER set to true and you always get into an infinite loop. How can this work with Tomcat? Or am I just missing something? If

Re: jetty

2008-02-27 Thread Carsten Ziegeler
Andre Juffer wrote: Joerg Heinicke wrote: On 26.02.2008 04:04, Andre Juffer wrote: var form = new Form(...); form.createBinding(...); var finished = false; var data = new ...; while (!finished) { try { form.load(data); form.showForm(...) form.save(data); do_something_with(data); fin

Re: jetty

2008-02-27 Thread Joerg Heinicke
On 27.02.2008 08:15, Andre Juffer wrote: Is it only me wondering how this can work at all when there is an exception? In that case finished is NEVER set to true and you always get into an infinite loop. How can this work with Tomcat? Or am I just missing something? If there is an exception,

Re: jetty

2008-02-27 Thread Andre Juffer
Joerg Heinicke wrote: On 26.02.2008 04:04, Andre Juffer wrote: var form = new Form(...); form.createBinding(...); var finished = false; var data = new ...; while (!finished) { try { form.load(data); form.showForm(...) form.save(data); do_something_with(data); finished = true; } cat

Re: Cocoon Sparql Transformer ?

2008-02-27 Thread Chabot Bernard
Hello David, Well Fresnel is also a topic I'm looking with many interests ... especially : - LONGWELL : http://simile.mit.edu/wiki/Longwell - LENA : http://isweb.uni-koblenz.de/Research/lena Thanks for this new fresnel link (http://jfresnel.gforge.inria.fr/) It seem I have to wait a little

Sitemap pipelines

2008-02-27 Thread Alec Bickerton
Hi, I'm looking to streamline the sitemap that is being used and am seeing a few problems. First, a little bit of background... The application has evolved over a time to contain a large number of subdirectories. These subdirectories are not self contained and for the most part rely on the

Re: jetty

2008-02-27 Thread Joerg Heinicke
On 26.02.2008 04:04, Andre Juffer wrote: var form = new Form(...); form.createBinding(...); var finished = false; var data = new ...; while (!finished) { try { form.load(data); form.showForm(...) form.save(data); do_something_with(data); finished = true; } catch (ex) { var w =

Re: jetty

2008-02-27 Thread Andre Juffer
Hi Florian, thanks for the reply. This is the (somewhat adapted) portion of flow that works fine with all cocoon 2* version and tomcat: function something() { var form = new Form("definition.xml"); form.createBinding("binding.xml"); var data = new ...; var finished = false; while (!f

RE: Cocoon 2.1: how to cache generator result

2008-02-27 Thread Jasha Joachimsthal
Hi Stefan, You can use expires for this. On [1] you can read a breif description how to do this (look for "Expiration of Content"). An other way to do this is to configure a cron job that writes the content of the feed to the local filesystem every hour and your pipeline for the website reads that

Re: jetty

2008-02-27 Thread Dev at weitling
Hi Andre, I assume it doesn't help with the core problem (didn't catch the whole thread), but why don't you make a do-while-loop? var finished = false; do { ... finished = true; } while (!finished); Or just break? while (true) { ... break; } Setting finished=true to enter at leat

Re: jetty

2008-02-27 Thread Andre Juffer
True, but you can set finished to true as the first statement in the while loop. More testing. With finished to true as the first statement in the while loop, if there is NO exception thrown, the script behaves as one would expect. It continue after the form with the cocoon.sendPage(...) sta