Re: [cocoon3] @Context Request request

2011-10-31 Thread Steven Dolg
Am 30.10.2011 18:35, schrieb Andre Juffer: Hi, for processing a multipart/form-data request holding image data, I intend to use the commons imageupload [1]. In order to do so, I need to get access to the javax.servlet.http.HttpServletRequest object inside a REST resource. The @Context

Re: [cocoon3] @Context Request request

2011-10-31 Thread Steven Dolg
Am 31.10.2011 11:29, schrieb Andre Juffer: Steven, thanks for the reply. The purpose of the request is to upload an image file. With commons fileupload this is straightforward, but it requires direct access to HttpServletRequest. I did understand that HttpServletRequest is an interface of

Re: [cocoon3] @Context Request request

2011-10-31 Thread Steven Dolg
, the ImageResource. Thanks for your help, André On 10/31/2011 12:40 PM, Steven Dolg wrote: Am 31.10.2011 11:29, schrieb Andre Juffer: Steven, thanks for the reply. The purpose of the request is to upload an image file. With commons fileupload this is straightforward, but it requires direct

Re: Cocoon3 newbie help

2011-10-06 Thread Steven Dolg
Am 05.10.2011 14:24, schrieb Marzia Forli: Thank you very much Steven, Right now I constructed the 'hello world' stax pipeline and began to examine the mentioned 'ExampleComplexTransformer' and slowly bending my head around this whole stuff ;-) Correct me if I am wrong but stax and sax

Re: Cocoon3 newbie help

2011-10-05 Thread Steven Dolg
Am 05.10.2011 00:08, schrieb Marzia Forli: I am a xml processing newbie, who have to read-transform-write some pretty big xml files, and in my journey to the jaxp land I stumbled upon this wonderful library... Here I ask for some kind advice regarding the my problem. For my case let's imagine

Re: Cocoon 3 - no conditional pipelines?

2011-07-12 Thread Steven Dolg
Am 12.07.2011 10:39, schrieb Francesco Chicchiriccò: On 11/07/2011 23:25, Lars Huttar wrote: Robby, Thanks for your reply. It's nice to see another instance of the conditional and error-handling sitemap structures. However we still have a contradiction with section 2.1.1 of the documentation

Re: Streaming buffered image using Cocoon

2011-05-19 Thread Steven Dolg
Am 19.05.2011 15:49, schrieb JeVeoy: I'm using Cocoon 2.2 Case I would like to merge 2 images in PNG format on the server (buffered image) and then send the result back as a stream. Thus NOT saving the image on the server. As an example you could have a nice background picture of a field. The

Re: Cocoon caching with multiple pipelines

2011-04-27 Thread Steven Dolg
Am 27.04.2011 10:41, schrieb Robin Taylor: Hi Thorsten, Thanks again and apologies for drip-feeding the questions. In the code I'm looking at it appears the second pipeline has an empty map:generate ie.map:generate/. I assume this results in the second pipeline using the output from the first

Re: [C3] How to prevent caching a stylesheet?

2010-06-18 Thread Steven Dolg
Hi, no, there is no further caching setting you could use and there should be no caching with the configuration you described. However, after looking at some code I found this in the XSLTTransformer: private void loadXSLT(final URL source, final MapString, Object attributes) { if

Re: [C3] Reloading the sitemap

2010-06-02 Thread Steven Dolg
Hugh Sparks schrieb: Is there a way for a C3 webapp to notice and deal with changes to sitemap.xmap? In cocoon22, it was possible to specify this behavior using a property: WEB-INF/cocoon/properties/core.properties: org.apache.cocoon.reloading.sitemap=true This doesn't seem to have any

Re: [C3] Putting content in webapp root

2010-05-26 Thread Steven Dolg
Hugh Sparks schrieb: Starting with the cocoon-sample-webapp as a model, I'm trying to make this construct work: webapp: index.html sitemap.xmap WEB-INF/ applicationContext.xml log4j.xml web.xml lib/ ... applicationContext.xml: ...

Re: [C3] Putting content in webapp root

2010-05-26 Thread Steven Dolg
Steven Dolg schrieb: Hugh Sparks schrieb: Starting with the cocoon-sample-webapp as a model, I'm trying to make this construct work: webapp: index.html sitemap.xmap WEB-INF/ applicationContext.xml log4j.xml web.xml lib

Re: Writing generator / Cocoon3 alpha

2010-03-16 Thread Steven Dolg
Johannes Lichtenberger schrieb: Hm I checked out a new empty cocoon3 block with maven, copied the source codes and now the exceptions jetty throwed disappeared, but it still doesn't execute: public void execute() { try { System.out.println(blaa); So blaaa is never printed

Re: Multithreading within a pipeline component.

2009-12-11 Thread Steven Dolg
Reinhard Pötz schrieb: Johannes Lichtenberger wrote: Hello, is it even possible to generate threads for instance in a generator? I assume the SAX events generated wouldn't be in the right order at the following transformer. yes, it's your responsibility to take care of the right

Re: log4j issues...

2009-12-10 Thread Steven Dolg
Johannes Lichtenberger schrieb: Hello, I'm still trying to catch errors with my logger, now I've even tried the following: static { GoogleEarthGenerator.class.getResource(rcl-config/WEB-INF/log4j.xml); } /** Logger (commons-logging). */ private Log logger =

Re: cocoon3 sitemap call

2009-12-09 Thread Steven Dolg
Reinhard Pötz schrieb: Thomas Markus wrote: i missed the aop part it would be great to move all servlet independent parts outside of cocoon-servlet (CallStack ...), maybe to cocoon-pipeline currently i cant use cocoon-servlet as dependency (and dont want).

Re: URLConnectionUtils.closeLoudly()

2009-12-04 Thread Steven Dolg
Jos Snellings schrieb: Hi! At the end of RESTController I get: 2009-12-04 14:57:26,014 ERROR http-8080-Processor20 org.apache.cocoon.sitemap.InvocationImpl/handle-errors - Error while executing the sitemap. [request-uri=/editor/put/definition/1124] java.lang.NullPointerException at

Re: REST / Can't find URLResponseBuilder

2009-12-01 Thread Steven Dolg
Jos Snellings schrieb: If I understand you well, your assignment is to: * catch a get URL emitted by Google Earch * this url contains coordinates * on the basis of these coordinates you lookup things in an XML file. Here's my advice: forget about the RESTController and just write a generator,

Re: Image transcoding using cocoon

2009-07-08 Thread Steven Dolg
Javier Rodriguez (genaker) schrieb: Hi, I need to implement a transcoding of images (resolution and format) for an application based in cocoon. Theses images are taken from an URL. I am thinking in several solutions but I don't know witch is the most appropriate: 1. Implement the transcoding

Re: Stand alone Cocoon

2009-06-26 Thread Steven Dolg
zzkumar schrieb: Hi All, Hi, I am new to Cocoon. We are planning to use Cocoon for report generation (XML + excel template passed through Cocoon = Excel file with values filled in). I am able to generate the report when I deploy the cocoon as a web app. Now the issue is, I want to integrate

Re: Stand alone Cocoon

2009-06-26 Thread Steven Dolg
zzkumar schrieb: Hi All, I am new to Cocoon. We are planning to use Cocoon for report generation (XML + excel template passed through Cocoon = Excel file with values filled in). I am able to generate the report when I deploy the cocoon as a web app. Now the issue is, I want to integrate cocoon

Re: Regexp matcher with digits

2009-06-02 Thread Steven Dolg
Mansour Al Akeel schrieb: For some reasons {0} is matching only the digits, because 1 is empty always ! map:match type=regexp pattern=(\**)([0-9])$ .. map:transform src=transform.xsl map:parameter name=href value={1}/ map:parameter

Re: Regexp matcher with digits

2009-06-02 Thread Steven Dolg
Mansour Al Akeel schrieb: On Tue Jun 02,2009 10:34 am, Steven Dolg wrote: Mansour Al Akeel schrieb: For some reasons {0} is matching only the digits, because 1 is empty always ! map:match type=regexp pattern=(\**)([0-9])$ .. map:transform src=transform.xsl

Re: ClassCastException in cocoon-block-deployment when running junit test [cocoon-3] and using cocoon-spring-configurator

2009-05-15 Thread Steven Dolg
Robby Pelssers schrieb: Hi all, I’ve been trying for quite some time to get a simple unit test working for a cocoon 3-block where I’m also using the ‘cocoon-spring-configurator’. I added the files involved because I have no clue if this is a configuration problem somehow giving me the

Re: cocoon 3 sample: remark about usage of servlet-service demo

2009-05-11 Thread Steven Dolg
Robby Pelssers schrieb: Hi all, Taking a quick look at the cocoon 3 sample I noticed that the “transformer-pipeline” and “serializer-pipeline” are sort of the same except for myParam which get’s another value. I noticed as well that I can’t leave out the map:serialize type=”xml”/ from the

Re: [C3] Accessing XSLT URL that requires Authentication

2009-04-27 Thread Steven Dolg
Hello Nils, I'm afraid there is currently no support for accessing URLs that require authentication. While I think this is a feature all components should have, it will take some time to add this and you'd have to wait for the next release or change to the trunk in order to use it. A faster

Re: [C3] Accessing XSLT URL that requires Authentication

2009-04-27 Thread Steven Dolg
Nils Preusker schrieb: Hi Steven, thanks for your reply, I created a new XSLTTransformer for now, based on the code you suggested in your mail. Since we're talking feature requests, I think it would also make sense to provide a PipelineComponent that allows to access XML documents through