Re: cocoon-2.1.12 - lucene indexer - cinclude

2015-03-17 Thread Peter Sparkes
appears to be working correctly except for the Cinclude of new files Cheers Peter On 17/03/2015 08:04, Jos Snellings wrote: Hi Peter, What file do you want to include? (I see no src attribute?) Cheers, Jos On Mon, Mar 16, 2015 at 8:37 PM, Peter Sparkes pe...@didm.co.uk mailto:pe

cocoon-2.1.12 - lucene indexer - cinclude

2015-03-16 Thread Peter Sparkes
Hi, I have a lucene application base on samples/blocks/querybean All worked fine for a long time, but now the cinclude in !-- the lucene indexer -- map:match pattern=screen/indexer map:generate type=jx src=screens/lucene-indexer.xml/ map:transform type=cinclude/ for new file

Re: Sending Email from a form

2015-03-12 Thread Peter Sparkes
smtp.bytemark.co.uk as your smtp-relay. They describe in the document link above, why you should **not** do this anymore. Hope that helps, Arne *From:*Peter Sparkes [mailto:pe...@didm.co.uk] *Sent:* Thursday, March 05, 2015 6:26 PM *To:* users@cocoon.apache.org *Subject:* Sending Email from a form Hi I

Re: Sending Email from a form

2015-03-05 Thread Peter Sparkes
at 6:25 PM, Peter Sparkes pe...@didm.co.uk mailto:pe...@didm.co.uk wrote: Hi I have an application that used a form to send emails. This has worked successfully for many years. However, recently users have reported getting error messages, as per the attached. My testing has

Re: javascript -Java

2014-09-27 Thread Peter Sparkes
. Hope that helps. Jos On Fri, Sep 26, 2014 at 10:30 PM, Peter Sparkes pe...@didm.co.uk mailto:pe...@didm.co.uk wrote: Hi, Cocoon 2.1.12 Ref http://cocoon.apache.org/2.1/userdocs/flow/java.html Please how do I associate importClass(Packages.org.imgscalr.Scalr); with its

javascript -Java

2014-09-26 Thread Peter Sparkes
Hi, Cocoon 2.1.12 Ref http://cocoon.apache.org/2.1/userdocs/flow/java.html Please how do I associate importClass(Packages.org.imgscalr.Scalr); with its jar file imgscalr-lib-4.2.jar which I put in WEB-INF/lib Regards Peter

Re: Resizing images using imgscalr

2014-09-25 Thread Peter Sparkes
(java.awt.image.BufferedImage,java.lang.Integer). The problem I have is that I am not a java programmer Regards Petere On 24/09/2014 14:31, Thorsten Scherler wrote: On 18/09/14 15:43, Peter Sparkes wrote: Hi, Cocoon 2.1.12 I use the following javascript ( Text in Black )with the Cocoon Upload widget uploading

Advanced Control Flow - Java

2014-09-24 Thread Peter Sparkes
Hi, http://cocoon.apache.org/2.1/userdocs/flow/java.html; has an example of dynamically compiling Java source files and loading and executing the resulting classes at runtime Please where would the jar file go? is it WEB-INF/lib, as I can't get it to work? Thanks Peter

Re: IMAGEOP Block

2014-09-18 Thread Peter Sparkes
} / /map:read /map:match themer/themes/common/images/ is the route to my images's folder c) start my project and I test: * http://localhost:8080/prueba/audio.gif/scale-2.5-jpg * http://localhost:8080/prueba/audio.gif/resize-100-50 All works fine. El 16/09/2014 22:27, Peter Sparkes

Resizing images using imgscalr

2014-09-18 Thread Peter Sparkes
Hi, Cocoon 2.1.12 I use the following javascript ( Text in Black )with the Cocoon Upload widget uploading images to the upload-dir and then move them to the lodgeimage300px directory. This works I now want to scale the images using imgscalr ,

IMAGEOP Block

2014-09-17 Thread Peter Sparkes
All works fine. El 16/09/2014 22:27, Peter Sparkes escribió: Hi Miguel, My java is not good enough debug the block imageop to see what parameters's value arrive to class However as * Display image with original size and colour * Tint image various colour are working I assume

Re: Resize images

2014-09-16 Thread Peter Sparkes
Thank you Miguel Peter On 16/09/2014 07:08, Miguel wrote: Hi Peter block imageop-samples exist for cocoon 2.1, and you can download in: http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.1/RELEASE_2_1_12/src/blocks/imageop El 15/09/2014 15:57, Peter Sparkes escribió: Hi, Thank

Re: Resize images

2014-09-16 Thread Peter Sparkes
Peter On 16/09/2014 07:34, Peter Sparkes wrote: Thank you Miguel Peter On 16/09/2014 07:08, Miguel wrote: Hi Peter block imageop-samples exist for cocoon 2.1, and you can download in: http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.1/RELEASE_2_1_12/src/blocks/imageop El 15/09

Re: Resize images

2014-09-16 Thread Peter Sparkes
message when you use transformer? El 16/09/2014 13:14, Peter Sparkes escribió: Hi Miguel, I have implemented imageop, however, the only samples that work are: * Display image with original size and colour * Tint image various colour I get Unable to transform src image for * Image scaling

Re: Resize images

2014-09-16 Thread Peter Sparkes
bugs, and all are fixed, so I think module must works. https://issues.apache.org/jira/browse/COCOON/component/12311751/?selectedTab=com.atlassian.jira.jira-projects-plugin:component-summary-panel El 16/09/2014 14:03, Peter Sparkes escribió: I am using the Samples block on cocoon 2.1.12

Re: Resize images

2014-09-15 Thread Peter Sparkes
-3383 Fax: (403) 282-1218 tel:%28403%29%20282-1218 -Original Message- From: Peter Sparkes [mailto:pe...@didm.co.uk mailto:pe...@didm.co.uk] Sent: September-11-14 8:23 AM To: users@cocoon.apache.org mailto:users@cocoon.apache.org Cocoon users Subject: Resize images

Resize images

2014-09-11 Thread Peter Sparkes
Hi, I currently have a cocoon application which enables the site owner to upload images and then within the upload javascript uses java to move the images to the required directory. Most of the uploaded images are large and therefore they are slow in displaying in a web page. I,

Adaptive Images and Cocoon

2014-09-10 Thread Peter Sparkes
Hi, Has anyone any tips on implementing Adaptive Images, http://adaptive-images.com/details.htm, with Cocoon Thanks Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail:

Re: Problems building cocoon-2.1.12

2014-06-16 Thread Peter Sparkes
Thank David, Building on your suggestion I ran build several times and eventually it was successful Warrell - I tried 1.7 first and it was plainly incompatible Thanks All Peter On 16/06/2014 08:10, David Crossley wrote: Peter Sparkes wrote: Hi I am having problems building cocoon

Problems building cocoon-2.1.12

2014-06-15 Thread Peter Sparkes
Hi I am having problems building cocoon-2.1.12 on my 64 bit windows 7 system, with j2sdk1.4.2_19 I had no problems on my old 32 bit windows XP system I am getting cocoon-block-html-patch: Processing: D:\cocoon-2.1.12-wl - Copy\src\blocks\html\conf\html-transformer.xmap Processing:

Re: authentication framework

2014-06-14 Thread Peter Sparkes
harries wrote: Hi Peter, This is an action that should be declared in the root sitemap. Have you built the war file with the authentication block enabled? Cheers, Warrell On 27 May 2014 14:28, Peter Sparkes pe...@didm.co.uk mailto:pe...@didm.co.uk wrote: Hi I have not I can't

Re: svg text in fop on cocoon-2.1.12 Linex

2014-05-27 Thread Peter Sparkes
I have taken the easy way out and converted those svg images with text to jpg and then put them into the fop pdf Regards Peter On 25/05/2014 17:28, Andreas Kuehne wrote: Hi Peter, as far as I remember the usual suspects were: - expected font (family) not installed on your machine : make a

authentication framework

2014-05-27 Thread Peter Sparkes
Hi I can't get the /authentication framework sample to to work in /Cocoon 2.1.12 I get the following error org.apache.avalon.framework.configuration.ConfigurationException: Type 'auth-loggedIn' is not defined for 'act' at

svg text in fop on cocoon-2.1.12 Linex

2014-05-25 Thread Peter Sparkes
Hi, I am having problems with svg text in fop on cocoon-2.1.12 Linux The problem does not occur on cocoon-2.1.12 Windows I get the following error whenever the svg contains text eg with fo:instream-foreign-object content-width=15px content-height=100px padding-right=0.2cm svg

svg text in fop on cocoon-2.1.12 Linex

2014-05-25 Thread Peter Sparkes
Hi, Sorry previous email send before fully written I am having problems with svg text in fop on cocoon-2.1.12 Linux The problem does not occur on cocoon-2.1.12 Windows I get the following error whenever the svg contains text eg with fo:instream-foreign-object content-width=15px

Using replace in Flowscript

2014-02-16 Thread Peter Sparkes
Hi, I am having difficulties using: * document=document.replace('hhh','ggg') in my flowscript Help please, how do I import the correct package/class Thanks Peter

Cocoon and Blogging

2014-01-15 Thread Peter Sparkes
Hi, I want to set up a Blog for a Cocoon 2.1 website. Help please on what software to use Thanks Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail:

PDF in Cocoon 2.1.12 Tomcat

2013-08-02 Thread Peter Sparkes
Hi, I have an 2.1.12 application which produces some PDF pages. It works well on my windows machine, however, on my debian tomcat server the pdf pages produce the following error *type*Exception report *message*_Servlet execution threw an exception_ *description*_The server encountered an

Re: Selecting values from a html5 form

2013-07-04 Thread Peter Sparkes
On Thu, Jun 27, 2013 at 10:32 AM, Peter Sparkes pe...@didm.co.uk mailto:pe...@didm.co.uk wrote: Hi, I want to use a html5 form to pass values into my sitemap eg form action=enquiry method=? input type=text name=fromname

Selecting values from a html5 form

2013-06-27 Thread Peter Sparkes
Hi, I want to use a html5 form to pass values into my sitemap eg form action=enquiry method=? input type=text name=fromnameplaceholder=Your Name required=''/ How do I pass fromname into enquiry Regards Peter

Re: 2.1.12 and html5

2013-06-05 Thread Peter Sparkes
HTH salu2 Le 05/06/2013 07:15, Peter Sparkes a écrit : Hi Francesco , I can't get the XHTML serializer to produce html5, the sitemap.xmap has: map:serializer logger=sitemap.serializer.xhtml mime-type=text/html name=xhtml pool-max=${xhtml-serializer.pool-max} src

Forms Field Widget, Date Converter and IE10

2013-06-04 Thread Peter Sparkes
I have a 2.1.10 application which has successfully used the Forms Field Widget, Date Converter for some years. How it appears to be broken in IE10. Any Ideas Thanks Peter - To unsubscribe, e-mail:

Re: Cocoon 2.1.12 on Windows

2013-06-04 Thread Peter Sparkes
Thank you Chicchiriccò That fixed the problem Peter On 04/06/2013 08:16, Francesco Chicchiriccò wrote: On 03/06/2013 18:54, Peter Sparkes wrote: Hi I have downloaded 2.1.12 onto my windows machine and built it. However, then I try to run it using cocoon or cocoon servlet the process

Re: Cocoon 2.1.12 on Windows

2013-06-04 Thread Peter Sparkes
Sorry I should have said Thank you Francesco Peter On 04/06/2013 08:42, Peter Sparkes wrote: Thank you Chicchiriccò That fixed the problem Peter On 04/06/2013 08:16, Francesco Chicchiriccò wrote: On 03/06/2013 18:54, Peter Sparkes wrote: Hi I have downloaded 2.1.12 onto my windows

Re: 2.1.12 and html5

2013-06-04 Thread Peter Sparkes
/map:serializer I have tried experimenting with various values in doctype-public and doctype-system but can't get !DOCTYPE html html head Regards Peter On 04/06/2013 08:18, Francesco Chicchiriccò wrote: On 03/06/2013 19:19, Peter Sparkes wrote: Hi Does 2.1.12 have a html5

Cocoon 2.1.12 on Windows

2013-06-03 Thread Peter Sparkes
Hi I have downloaded 2.1.12 onto my windows machine and built it. However, then I try to run it using cocoon or cocoon servlet the process finishes with EVENT Stutdown hook executed and when I load it into my browser I get Firefox can't establish a connection to the server at

2.1.12 and html5

2013-06-03 Thread Peter Sparkes
Hi Does 2.1.12 have a html5 serializer Thanks peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org

Re: Mobile Website

2013-05-31 Thread Peter Sparkes
Thank you very much Andre. The initializr site and the Firefox tip have made the learning curve much easier. I have also got Ethan Marcotte's book Responsive Web Design which ties it all together With many thanks Peter On 28/05/2013 13:39, Andre Juffer wrote: On 05/28/2013 02:50 PM, Peter

Re: Inter Server Communications

2013-05-20 Thread Peter Sparkes
Now working. Thanks to all. I used xslt to generate the cinclude, to insert the variables Regards Peter On 17/05/2013 23:53, Thorsten Scherler wrote: On 05/17/2013 05:20 PM, Peter Sparkes wrote: Hi I have an application in which I require to send a POST request from the server to another

Inter Server Communications

2013-05-17 Thread Peter Sparkes
Hi I have an application in which I require to send a POST request from the server to another non Cocoon website ( to set parameters for a newsletter which uses phplist newsletter software) and the response would be in JSON This would be server to server without any client browser being

Mobile Website

2013-05-14 Thread Peter Sparkes
Hi, I have a requirement to use different sitemap.xmap for mobiles depending on the screen size. I am using 2.1.11 Please, how do I do this? Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional

Re: Mobile Website

2013-05-14 Thread Peter Sparkes
Or stylesheets On 14/05/2013 07:36, Peter Sparkes wrote: Hi, I have a requirement to use different sitemap.xmap for mobiles depending on the screen size. I am using 2.1.11 Please, how do I do this? Peter

Re: cocoon 2.1.12 - memory

2013-04-15 Thread Peter Sparkes
is still there and has to be deleted before the site will start I assume that the problem is a memory leak as there is a lot on the web on it Regards Peter On 12/04/2013 07:24, Francesco Chicchiriccò wrote: On 12/04/2013 07:50, Peter Sparkes wrote: Hi, Has 2.1.12 fixed the 2.1.11 memory leak Hi

Re: cocoon 2.1.12 - memory

2013-04-15 Thread Peter Sparkes
On 15/04/2013 10:09, Thorsten Scherler wrote: On 04/15/2013 10:31 AM, Peter Sparkes wrote: Hi Francesco, I have a fairly large 2.1.11 website which has 700+ visits a day. Every few days the site goes down unless I stop and start it every day ( using Crontab). I have also increased

Re: cocoon 2.1.12 - memory

2013-04-15 Thread Peter Sparkes
I am not sure, but I don't think so. All data in held and manipulated as xml files. Its fast and easy to program etc Peter On 15/04/2013 10:44, Jos Snellings wrote: Does the site happen to use Avalon Datasource objects? Jos On Mon, Apr 15, 2013 at 11:38 AM, Peter Sparkes pe...@didm.co.uk

cocoon 2.1.12 - memory

2013-04-11 Thread Peter Sparkes
Hi, Has 2.1.12 fixed the 2.1.11 memory leak Regards Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org

Upload widget

2013-04-04 Thread Peter Sparkes
Hi , When uploading a file with the same name as one previously uploaded a new file is created with an incremented file name eg. image.jpg 0_ image.jpg 1_ image.jpg etc. Please, how can I get the widget to replace the old file with the new file keeping the same file name Regards Peter

Cocoon 2.1.12

2013-03-20 Thread Peter Sparkes
A big thank you to everybody involved in developing the newly released Cocoon 2.1.12 Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org

Re: Using FOP 1.1 with Cocoon 2.1.11

2013-02-13 Thread Peter Sparkes
Hi Francesco, Thank you. I shall wait for Cocoon 2.1.12 Regards Peter On 13/02/2013 10:07, Francesco Chicchiriccò wrote: On 12/02/2013 18:42, Peter Sparkes wrote: I have been unable to use FOP 1.1 with Cocoon 2.1.11. Please, how do I do it Hi Peter, COCOON-2295 [1] is introducing

Re: Using FOP 1.1 with Cocoon 2.1.11

2013-02-12 Thread Peter Sparkes
I have been unable to use FOP 1.1 with Cocoon 2.1.11. Please, how do I do it Peter On 09/02/2013 10:35, warrell harries wrote: I believe it is. Certainly, I have used 1.0...iirc On 9 Feb 2013 08:17, Peter Sparkes pe...@didm.co.uk mailto:pe...@didm.co.uk wrote: Hi, Is it possible

Using FOP 1.1 with Cocoon 2.1.11

2013-02-09 Thread Peter Sparkes
Hi, Is it possible to use FOP 1.1 with Cocoon 2.1.11 Thanks Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org

Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread Peter Sparkes
Hi Cocoon 2.11 I have implemented a multipage CForm which uses Ajax. The form is based on the example at http://cocoon.zones.apache.org/cocoon21/samples/blocks/forms/do-multipage.flow The form works fine except that it does not save non ascii characters correctly eg. É EUR ç £ If I

Re: Multipage CForm using Ajax - Non ascii Characters

2013-01-14 Thread Peter Sparkes
, Robby Pelssers wrote: You will probably need to encode the characters if you make an ajax call… var somevalue = encodeURIComponent(“this is a value to be encoded”); Robby *From:*Peter Sparkes [mailto:pe...@didm.co.uk] *Sent:* Monday, January 14, 2013 3:18 PM *To:* Cocoon users *Subject

Re: Flowscript - Move file to another directory

2013-01-02 Thread Peter Sparkes
but you will need to take care of a few things in that case. Robby -Original Message- From: Peter Sparkes [mailto:pe...@didm.co.uk] Sent: Tuesday, January 01, 2013 6:08 PM To:users@cocoon.apache.org Subject: Flowscript - Move file to another directory Hi, I am trying to copy image files

Flowscript - Move file to another directory

2013-01-01 Thread Peter Sparkes
Hi, I am trying to copy image files from one directory to another, using flowscript, without any success. Please has anyone got an example java version 1.6.0_22 Thanks Peter - To unsubscribe, e-mail:

Re: Flowscript - delete file

2012-12-29 Thread Peter Sparkes
07:58, Peter Sparkes wrote: Hi Martin and Robby, Thank you both for your help, what I have ended up with is: importClass(Packages.java.io.File); importClass(Packages.java.io.FileNotFoundException); function deletefile() { //var filePath = cocoon.parameters[file]; var filePath = D

Re: Flowscript - delete file

2012-12-28 Thread Peter Sparkes
Hi Martin and Robby, Thank you both for your help, what I have ended up with is: importClass(Packages.java.io.File); importClass(Packages.java.io.FileNotFoundException); function deletefile() { //var filePath = cocoon.parameters[file]; var filePath =

Flowscript - delete file

2012-12-27 Thread Peter Sparkes
Hi, I am trying to delete xml files using the following flowscript: function deletefile() { //file to be deleted var file = Packages.java.lang.String(cocoon.parameters[file]); try { // creating a link to the file to be deleted var xml_file =

Re: Flowscript - delete file

2012-12-27 Thread Peter Sparkes
Hi Martin Thanks for your suggestion, unfortunately I get the same error. The error log gives: ERROR (2012-12-27) 15:30.46:723 [flow] (/office/deletefile_) PoolThread-4/JSErrorReporter: file:///D:/cocoon-2.1.11-wl/build/webapp/office/flow/deletefile.js, line 13: missing name after .

Re: Lucene querybean - cocoon 2.11

2012-12-26 Thread Peter Sparkes
Solved: 2. Is there any way of excluding a file from being indexed on the value of one of its attributes? The solution was put a xslt transformer in the sitemap - map:match pattern=screen/indexer Peter On 23/12/2012 08:59, Peter Sparkes wrote: Hi, I am using a querybean to generate

Re: Lucene querybean - cocoon 2.11

2012-12-26 Thread Peter Sparkes
On 26/12/2012 12:56, Francesco Chicchiriccò wrote: On 26/12/2012 13:52, Peter Sparkes wrote: Solved: 2. Is there any way of excluding a file from being indexed on the value of one of its attributes? The solution was put a xslt transformer in the sitemap - map:match pattern=screen/indexer

Re: Delete, move or rename files

2012-12-23 Thread Peter Sparkes
actions that can handle delete / move / rename events. Robby *From:*Peter Sparkes [mailto:pe...@didm.co.uk] *Sent:* Saturday, December 22, 2012 4:44 PM *To:* users@cocoon.apache.org *Subject:* Delete, move or rename files Hi, Is there anyway of 1. deleting, 2. moving 3. renaming xml files

Lucene querybean - cocoon 2.11

2012-12-23 Thread Peter Sparkes
Hi, I am using a querybean to generate a Lucene index. The sitemap pattern is ( adapted from the sample block : map:match pattern=create.html map:call function=indexCollection map:parameter name=screen value=screen/indexer/ map:parameter

Delete, move or rename files

2012-12-22 Thread Peter Sparkes
Hi, Is there anyway of 1. deleting, 2. moving 3. renaming xml files on the server. Thanks Peter

CForms Character Encoding

2012-12-04 Thread Peter Sparkes
I am using C.2.11 I have a CForm implementation and there are, in the xml text, special characters such as: £, Â, ⅗ and â I am using UTF-8 encoding and such characters in the xml file are correctly displaced in the CForm and when the form is saved they are correctly saved in the xml file.

Re: CForms Character Encoding

2012-12-04 Thread Peter Sparkes
On 04/12/2012 08:46, Francesco Chicchiriccò wrote: On 04/12/2012 09:40, Peter Sparkes wrote: I am using C.2.11 I have a CForm implementation and there are, in the xml text, special characters such as: £, Â, ⅗ and â I am using UTF-8 encoding and such characters in the xml file are correctly

Re: CForms Character Encoding

2012-12-04 Thread Peter Sparkes
On 04/12/2012 09:15, Peter Sparkes wrote: On 04/12/2012 08:46, Francesco Chicchiriccò wrote: On 04/12/2012 09:40, Peter Sparkes wrote: I am using C.2.11 I have a CForm implementation and there are, in the xml text, special characters such as: £, Â, ⅗ and â I am using UTF-8 encoding

Re: CForms br /

2012-12-03 Thread Peter Sparkes
/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true newValue)| || |I think you can set it in http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/forms/formmodel/AbstractWidget.html| || |Robby| *From:*Peter Sparkes [mailto:pe...@didm.co.uk] *Sent:* Friday, November 30, 2012 7:33 AM

CForms - nested repeaters

2012-11-30 Thread Peter Sparkes
Cocoon 2.1.11 I can't get a nested repeater to work. Can anyone point to to an example please Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org

Re: CForms - nested repeaters

2012-11-30 Thread Peter Sparkes
Thank you Francesco Just what I wanted. Peter On 30/11/2012 09:12, Francesco Chicchiriccò wrote: On 30/11/2012 09:37, Peter Sparkes wrote: Cocoon 2.1.11 I can't get a nested repeater to work. Can anyone point to to an example please Hi Peter, I am not very familiar (any more) with CForms

CForms br /

2012-11-29 Thread Peter Sparkes
CForms with 2.1.11 cocoon. I have a field widget with datatype string: fd:field id=p required=false whitespace=trim fd:datatype base=string/ /fd:field which is bound to a para in the source document. Some paras contain br / elements. On loading a document in the CForm the br /

Upload widget cocoon-2.1.11

2012-10-14 Thread Peter Sparkes
Hi, I want to use two upload widgets in a CForm. Each widget will upload files to a different directory eg: 1. images/ 2. pdfs/ Please how can I do it as the web.xml appears to only allow in init-param param-nameupload-directory/param-name param-valueD:\test/param-value

Re: Upload widget cocoon-2.1.11

2012-10-14 Thread Peter Sparkes
On 14/10/2012 10:18, Peter Sparkes wrote: Hi, I want to use two upload widgets in a CForm. Each widget will upload files to a different directory eg: 1. images/ 2. pdfs/ Please how can I do it as the web.xml appears to only allow in init-param param-nameupload-directory/param-name

Work Opportunity

2011-01-17 Thread Peter Sparkes
, England. If you are interested, please, send me your telephone number so we discuss the it. Regards Peter Sparkes

Flash .swf in Cocoon 2.1.11

2010-12-07 Thread Peter Sparkes
Hi, I am trying, without success, to display a flash .swf files using Cocoon 2.1.11 Help please Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail:

Re: Flash .swf in Cocoon 2.1.11

2010-12-07 Thread Peter Sparkes
. In my sitemap.xmap file I have map:match pattern=images/*.swf map:read mime-type=application/x-shockwave-flash src=resources/images/{1}.swf/ /map:match Regards Peter On 7 December 2010 13:49, Peter Sparkes pe...@didm.co.uk mailto:pe...@didm.co.uk wrote: Hi, I am trying, without

Cocoon 2.1.11 Samples CForms Binding

2010-02-04 Thread Peter Sparkes
The function saveDocument(document, uri) saves the xml as ISO-8859-1 even though the OutputKeys are set as: transformer.setOutputProperty(Packages.javax.xml.transform.OutputKeys.METHOD, xml); transformer.setOutputProperty(Packages.javax.xml.transform.OutputKeys.ENCODING, UTF-8); Please, is

mysql

2008-10-03 Thread Peter Sparkes
Hi, I have to use |mysql instead of hsqldb and I don't know how to connect it to Cocoon, help please. I am using Cocoon 2.1 Thanks Peter | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: mysql

2008-10-03 Thread Peter Sparkes
Thanks Bertrand Regards Peter Hi, On Fri, Oct 3, 2008 at 11:02 AM, Peter Sparkes [EMAIL PROTECTED] wrote: ...I have to use |mysql instead of hsqldb and I don't know how to connect it to Cocoon, help please. I am using Cocoon 2.1.. Then that page should help: http://wiki.apache.org

Non Portal Basket

2008-10-02 Thread Peter Sparkes
Hi, I want to implement a Basket. However, the only example I can find is using the Portal Engine, which I do not want to use. Is there a way of implementing a basket without using the Portal Engine? Regards Peter Sparkes

Upload widget - Storing Data Permanently

2008-08-21 Thread Peter Sparkes
Hi, When data is uploaded using the Upload Widget it is automatically cleaned up when the upload widget instance object is finalized by the JVM. Please, how can I permanently store the data (image file)? Thanks Peter Sparkes

Re: Passing request parameter from the sitemap

2008-08-11 Thread Peter Sparkes
/request;; declare namespace session=http://exist-db.org/xquery/session;; let $user := request:get-parameter(user, 'error'), return p user : {$user} /p Returns p user : error /p while http://localhost:8080/exist/register.xq?user=test Returns p user : test/p Peter 2008/8/7 Peter

Re: Passing request parameter from the sitemap

2008-08-08 Thread Peter Sparkes
Returns p user : test/p Peter 2008/8/7 Peter Sparkes [EMAIL PROTECTED]: I am trying to pass various request parameter from the sitemap to a eXist xquery using: map:match pattern=register-with-eXist map:generate src=register.xq type=xquery !--map:parameter name=user value={flow

Image caching problem using FOP

2008-08-07 Thread Peter Sparkes
Hi, I have pages that can be viewed as xhtml and pdf which is generated by FOP. When I change the images, using the same image filenames, the new images appear in the xhtml version, however the old images are shown in the pdf version. If I use new images with different file names the new

Re: Image caching problem using FOP

2008-08-07 Thread Peter Sparkes
I am using fo:external-graphic src= Hi, I have pages that can be viewed as xhtml and pdf which is generated by FOP. When I change the images, using the same image filenames, the new images appear in the xhtml version, however the old images are shown in the pdf version. If I use new images

Passing request parameter from the sitemap

2008-08-07 Thread Peter Sparkes
Hi, I am trying to pass various request parameter from the sitemap to a eXist xquery using: map:match pattern=register-with-eXist map:generate src=register.xq type=xquery !--map:parameter name=user value={flow-attribute:user}/-- map:parameter name=user value=test/

Re: Image caching problem using FOP

2008-08-07 Thread Peter Sparkes
Thanks Andy, Now working Thanks again Peter 2008/8/7 Peter Sparkes [EMAIL PROTECTED]: I have pages that can be viewed as xhtml and pdf which is generated by FOP. When I change the images, using the same image filenames, the new images appear in the xhtml version, however the old images

PDF Image Caching Problem

2008-05-05 Thread Peter Sparkes
in the production system. I am using Cocoon 2.1.10 Thank you Peter Sparkes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: PDF Image Caching Problem

2008-05-05 Thread Peter Sparkes
exceed the maximum open files that your OS tolerates. (Cocoon 2.1.11 / Centos 4.6) mika Peter Sparkes kirjoitti: Hi I have tried using map:pipeline type=noncaching and invalidate the PDF by changing the XSLT that produces it. Neither makes any difference. It appears that FOP is getting

Sendmail using Flow - Attachments

2008-03-29 Thread Peter Sparkes
Hi, I am successfully sending email using Flow. However, I want to attach a html document to it that is generated via a sitemap and I can't get that to work. Please how do I attach a document that is generated by a sitemap Peter Sparkes

Re: Sendmail using Flow - Attachments

2008-03-29 Thread Peter Sparkes
with given prefix (stats) Peter Hi, I am successfully sending email using Flow. However, I want to attach a html document to it that is generated via a sitemap and I can't get that to work. Please how do I attach a document that is generated by a sitemap Peter Sparkes

Re: upload widget

2008-03-17 Thread Peter Sparkes
); var part = widget.getValue(); part.copyToFile(new.pdf) ; ... The pdf file is uploaded, but deleted at the end of the request. However it is not copied to new.pdf Please, what am I doing wrong ? Peter Sparkes Peter Sparkes pisze: Hi, Following

upload widget

2008-03-15 Thread Peter Sparkes
Hi, Following the /upload/ sample in the CForms Block Samples I am trying to upload files, however, the uploaded files are deleted at the end of a request. Please how do I permanently save the uploaded files. Thanks Peter Sparkes

Upload widget

2008-03-08 Thread Peter Sparkes
Hi, Please, using the Upload widget, how do I specify the location on the server I want a file uploaded to. Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cforms and Character Encoding

2008-01-23 Thread Peter Sparkes
and now everything is in UTF-8 and works properly The problem was that the form was sending UTF-8 but it was being read as ISO-8859-1 Peter On 08.12.2007 13:37, Peter Sparkes wrote: I am using Cforms in Cocoon 2.1.10 to amend an XML file. The character encoding is UTF-8 The Euro sign € gets

Re: Cforms and Character Encoding

2008-01-23 Thread Peter Sparkes
Thanks for the advice I have tested with various versions of IE and Firefox and all' fine Peter Peter Sparkes wrote: The problem turned out to be in web.xml I amended param-nameform-encoding/param-name param-valueISO-8859-1/param-value To param-nameform-encoding

cgi - Awstats Webstats

2008-01-13 Thread Peter Sparkes
Hi, I want to use Awstats Web stats on my site (Apache 2, tomcat5.5, cocoon 2.1). To access the stats on a NON Cocoon site I would use : www.mysite.com/cgi-bin/awstats.pl?config=awstat.conf On Cocoon this throws an error as it does not match any pipeline Please, how can I run Awstats on

Re: cgi - Awstats Webstats

2008-01-13 Thread Peter Sparkes
Yes Apache 2 Peter Sparkes : Hi, I want to use Awstats Web stats on my site (Apache 2, tomcat5.5, cocoon 2.1). To access the stats on a NON Cocoon site I would use : www.mysite.com/cgi-bin/awstats.pl?config=awstat.conf On Cocoon this throws an error as it does not match any pipeline

Foreign Language Teaching Website

2008-01-05 Thread Peter Sparkes
and other students. Any ideas or suggestions on how to implement it would be appreciated Regards Peter Sparkes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: New server recommendations?

2007-11-26 Thread Peter Sparkes
I am using Apache 2, Debian etch, java 1.5, tomcat 5 and Cocoon 2.1 and got the whole thing up and running in under a day. I have very little experience in setting up such a system so it can't be too difficult. I found http://edwardaux.wordpress.com/2006/09/20/3/ very helpful in setting the

  1   2   >