Re: XML-Serializer encoding

2006-01-17 Thread Edwin Kapauni
christian bindeballe wrote: [...] That's right. My mistake. I merely deducted the encoding from some characters used inside the text of the feeds as for example 8221; which are clearly non-Latin-1 characters. Since both feeds have ISO-8859-1 in their response headers it means that these feeds

Serving files

2006-01-17 Thread Goetzmann Bertrand
Title: Serving files Hi, I'm in a situation for my Cocoon application where I must serve all the file included in a certain folder, and I my sitemap.xmap I have statements like these : map:match pattern=FCKEditor/**.html map:read mime-type=text/html src=""> /map:match map:match

Re: Serving files

2006-01-17 Thread Bertrand Delacretaz
Le 17 janv. 06, à 09:14, Goetzmann Bertrand a écrit : ...The folder in question here is FCKEditor, and I supply a match for each file type. Is it the best approach for this ? It is a more simple way to do that ? map:match pattern=xyz/** map: read src=somewhere/{1}/ is enough, as map:read

RE: Serving files

2006-01-17 Thread Goetzmann Bertrand
Thank you Bertrand ! -Message d'origine- De : Bertrand Delacretaz [mailto:[EMAIL PROTECTED] Envoyé : mardi 17 janvier 2006 09:19 À : users@cocoon.apache.org Objet : Re: Serving files Le 17 janv. 06, à 09:14, Goetzmann Bertrand a écrit : ...The folder in question here is FCKEditor,

Re: How to access the session context with flowscript?

2006-01-17 Thread philguillard
Hum.. This is what i use to get session manager and context fragments in only 2 lines: var sessionManager = cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.SessionManager.ROLE); var user= sessionManager.getContextFragment(

Dynamic CF Forms: JX, XSLT or Flowscript? (Performance!)

2006-01-17 Thread Florian Leinberger
Hi, I have a Cocon Form. Depending on the rights of the User, parts of the form (i.e. a repeater, a group, widgets) should be shown or hidden. In the flowscript I have the information weather the user has the right to see a special part of the form or not. I see three possibilities how to

Re: XML-Serializer encoding

2006-01-17 Thread christian bindeballe
Edwin Kapauni schrieb: Don't mix characterset and character encoding. 8221 is decimal notation of unicode character U+201D. iso-8859-1 or utf-8 are just character encodings. Encoding and formatting of both your sources is ok, but selection of iso-8859-1 is a poor choice regarding readability.

Re: XML-Serializer encoding

2006-01-17 Thread Marc Portier
christian bindeballe wrote: Hello Marc, Marc Portier schrieb: snip / OK, so I belive I got something wrong. These characters that I thought to be Unicode-Characters are rather XML-Interpretations? Regarding unicode and encodings, please read this:

RE: Handling a multipart/form-data post

2006-01-17 Thread Ard Schrijvers
Title: Handling a multipart/form-data post make sure you have in your web.xml in the servlet element !-- Causes all files in multipart requests to be processed. Default is false for security reasons. Unsupported values will be interpreted as false. -- init-param

Re: XML-Serializer encoding

2006-01-17 Thread Edwin Kapauni
christian bindeballe wrote: [...] I figured last night that what was causing my funny output was not the character set nor the encoding, but the way my XSL handled the feeds. That's the reason why I recommended you omitting the transformation step and to watch what's happening. map:match

RE: Handling a multipart/form-data post

2006-01-17 Thread Goetzmann Bertrand
Title: Handling a multipart/form-data post Thank for your help, My goal is to handle the request with a matching in a pipeline, and then extract the uploaded file in order to save it on the server disk. I thought the StreamGenerator component was the solution but it seems it handles only

Re: XML-Serializer encoding

2006-01-17 Thread christian bindeballe
Edwin Kapauni schrieb: Also http://de.wikipedia.org/wiki/UTF-8 and http://de.wikipedia.org/wiki/Unicode are good references in German. cheers, I looked here: http://en.wikipedia.org/wiki/Character_encoding ;) it mentions the difficulty between distinguishing character sets and character

RE: Cocoon PHP integration

2006-01-17 Thread Schultz, Gary - COMM
I aggregate PHP with Cocoon by either putting a call to a PHP file directly in our agency's XHTML source files or building a call to a PHP file in a XSLT transformation. In both scenarios the call to the PHP file is sent to Apache for PHP processing. Note that in my scenarios the PHP is processed

Re: XML-Serializer encoding

2006-01-17 Thread Peter Flynn
On Tue, 2006-01-17 at 12:40, christian bindeballe wrote: Edwin Kapauni schrieb: Also http://de.wikipedia.org/wiki/UTF-8 and http://de.wikipedia.org/wiki/Unicode are good references in German. cheers, I looked here: http://en.wikipedia.org/wiki/Character_encoding ;) it

RE: Handling a multipart/form-data post

2006-01-17 Thread Goetzmann Bertrand
Title: Handling a multipart/form-data post Exploring the Web, it seems there is a possobility using the upload pseudo protocol and a "copy source" action to copy the uploaded file into a server folder ! Bertrand. De: Goetzmann Bertrand [mailto:[EMAIL PROTECTED] Envoyé: mardi 17 janvier

getting unique row-id in repeater widget

2006-01-17 Thread vijayaraghavan.subramaniam
Title: Message Hi, I'm using repeater widget, whichis having the output widget, on click of the output widget,I need to open a popup.. I need to pass unique repeater row-id to the popup (to the a href link )?.. Any one have an idea on this?My Definition file entry (xml file)

Re: Handling a multipart/form-data post

2006-01-17 Thread Bob Harner
On 1/17/06, Goetzmann Bertrand [EMAIL PROTECTED] wrote: Exploring the Web, it seems there is a possobility using the upload pseudo protocol and a copy source action to copy the uploaded file into a server folder ! Bertrand. De : Goetzmann Bertrand

Problems with JTidy and cocoon

2006-01-17 Thread Johannes Michler
Hi, i'm having serious troubles with our Cocoon webserver. It inserts linewraps in tables and i don't see how i can disable this behaviour. The Problem is the linewrapping before /TD. This is seen as whitespace and genarates an ugly page. If i add

Re: Handling a multipart/form-data post

2006-01-17 Thread Bob Harner
On 1/17/06, Bob Harner [EMAIL PROTECTED] wrote: On 1/17/06, Goetzmann Bertrand [EMAIL PROTECTED] wrote: Exploring the Web, it seems there is a possobility using the upload pseudo protocol and a copy source action to copy the uploaded file into a server folder ! Bertrand.

Re: XML-Serializer encoding

2006-01-17 Thread christian bindeballe
Edwin Kapauni schrieb: The first one goes into HTTP response header and is needed by any browser to recognize the character encoding of the following content. You may run your own test by just omitting it and checking HTTP response header of your output. The second one is telling the

Re: XML-Serializer encoding

2006-01-17 Thread Edwin Kapauni
christian bindeballe wrote: [...] [quote] Since the servlet specification requires that the ISO-8859-1 encoding is used (by default), you should never change this value unless you have a buggy servlet container.[/quote] Citation without sources? Where did you get that nonsense from?

Re: Ajax multivaluefield/double-listbox problem

2006-01-17 Thread Jason Johnston
Fabrizio Sitzia wrote: Hello I'm experiencing problems when rendering a multivaluefield using the 'double-listbox' styling - when that multivaluefield is contained in a repeater, and Ajax is enabled for the form (ft:form-template ajax=true) The 'double-listbox'-styled fields in the repeater

Re: XML-Serializer encoding

2006-01-17 Thread christian bindeballe
Edwin Kapauni schrieb: christian bindeballe wrote: [...] [quote] Since the servlet specification requires that the ISO-8859-1 encoding is used (by default), you should never change this value unless you have a buggy servlet container.[/quote] Citation without sources? Where did you get

Re: Ajax multivaluefield/double-listbox problem

2006-01-17 Thread Fabrizio Sitzia
Hello, I've digged a bit in the source myself ...and found out two things: 1. The optNx is not defined Javascript error is apparently caused by the optNx variable being initialised in a local scope instead of the document's global scope. ( For non-IE browsers, this can be fixed by

Re: XML-Serializer encoding

2006-01-17 Thread Edwin Kapauni
christian bindeballe wrote: [...] also, Marc Portier wrote: (see this thread, message-ID [EMAIL PROTECTED]) never change your container-encoding unless you have a servlet container of which you can specify the used encoding applied in decoding of url's and request parameters [...] Hi

Re: Dynamic CF Forms: JX, XSLT or Flowscript? (Performance!)

2006-01-17 Thread Florian Leinberger
Jason Johnston cocoon at lojjic.net writes: Thanks a lot for your advice. As we are stuck with Cocoon 2.17 I guess I have to live with layout limitations and use setWidgetState in the flowscript. Cheers, Florian - To

Re: getting unique row-id in repeater widget

2006-01-17 Thread Florian Leinberger
vijayaraghavan.subramaniam at wipro.com writes: We are using this concept quite lot - Opening a Popup-Window to insert values from a chooser into a file in a repeater-row. You can just use ft:repeater-size id=IDOFTHEREPEATER/ Hope this helps, Florian

Re: XML-Serializer encoding

2006-01-17 Thread christian bindeballe
Edwin Kapauni schrieb: map:serializer name=xhtml mime-type=test/html; charset=utf-8 logger=sitemap.serializer.xhtml pool-grow=2 pool-max=64 pool-min=2 src=org.apache.cocoon.components.serializers.XHTMLSerializer encodingUTF-8/encoding indentno/indent

Re: XML-Serializer encoding

2006-01-17 Thread christian bindeballe
As I thought, it was the html-include serializer in {base}/portal/sitemap.xmap that needed some fitting :) cb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

XSLT - How can I get the element name?

2006-01-17 Thread Christian Barth
Hi! Let's say I have the following XML: wurste wurst nameXY/name typZZ/typ blaVV/bla /wurst /wurste Now I want to transform this with XSLT to html. The result should be a table looking like this: name | XY typ | ZZ bla | VV I know I could do it like this: table tr

Re: XSLT - How can I get the element name?

2006-01-17 Thread Geert Josten
xsl:value-of select=local-name() / Cheers Christian Barth wrote: But is there a way to get the name of the Element automatically? Then I could fill in the table in a for-each-loop. - To unsubscribe, e-mail: [EMAIL

RE: XSLT - How can I get the element name?

2006-01-17 Thread Christian Barth
Oh, that easy! But where can I find such informations? Greets, BArthi -Original Message- From: Geert Josten [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 5:56 PM To: users@cocoon.apache.org Subject: Re: XSLT - How can I get the element name? xsl:value-of

Re: Problems with JTidy and cocoon

2006-01-17 Thread Bertrand Delacretaz
Le 17 janv. 06, à 17:27, Johannes Michler a écrit : Yes, i've tried this, but unfortunately this doesn't work with the transform-script (i get a white page) There is a difference between JTidy and NekoHTML in the way they generate namespaces...I don't have the details handy, but IIRC one of

Re: XSLT - How can I get the element name?

2006-01-17 Thread christian bindeballe
Christian Barth schrieb: Oh, that easy! But where can I find such informations? Greets, BArthi you probably won't find a place in the internet where you could ask such a question and get an automated answer, but maybe this will help http://www.topxml.com/xsl/default.asp or just

Re: XSLT - How can I get the element name?

2006-01-17 Thread Bertrand Delacretaz
Le 17 janv. 06, à 18:05, Christian Barth a écrit : ...But where can I find such informations? The XSLT-List is a good source, see http://www.dpawson.co.uk/xsl/list.html -Bertrand smime.p7s Description: S/MIME cryptographic signature

What's wrong with my XSL??

2006-01-17 Thread Christian Barth
I want to do something like the first one. table tbody xsl:for-each select=* xsl:when test=local-name() = 'abweichungen' tr thAchtung Abweichungen:/thth/th /tr /xsl:when xsl:otherwise tr tdxsl:value-of

Re: What's wrong with my XSL??

2006-01-17 Thread Geert Josten
You'd better revert to the xsl-list with these questions.. Anyhow: You have to wrap xsl:when and xsl:otherwise elements in a xsl:choose element to make them work. xsl:when test=local-name() = 'abweichungen' Besides: you can use test=self::abweichungen if your elements are not

Re: What's wrong with my XSL??

2006-01-17 Thread Aurélien DEHAY
Hello. Christian Barth a écrit : I want to do something like the first one. table tbody xsl:for-each select=* xsl:when test=local-name() = 'abweichungen' tr thAchtung Abweichungen:/thth/th /tr /xsl:when xsl:otherwise tr

RE: What's wrong with my XSL??

2006-01-17 Thread Christian Barth
Oh man, what a silly mistake. Thanks anyway. I think it's enough for today. See you guys tomorrow. G'Night, Barthi -Original Message- From: Aurélien DEHAY [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 8:08 PM To: users@cocoon.apache.org Subject: Re: What's wrong with

Re: Dyamic datasource configuration (2.1.7) is this possible?

2006-01-17 Thread Geert Josten
Errr, how dynamic is dynamic? I have worked on an implementation that uses JNDI internally and configures datasources in the webapp server (Oracle in this case.. :-P) In Oracle webserver you have the opportunity to define datasources on a maintenance webinterface. I'm not sure you can do

Design help/questions for cforms application

2006-01-17 Thread Duncan McLean
Hi We are currently trying to develop a forms based application which integrates into an existing cocoon-hosted site. The application consists of 7 or so forms which collect information from the user, which is eventually packaged up and used to invoke a business service which will call an

Help finding dbcp connection leaks

2006-01-17 Thread Joel McConaughy
I suspect we have a connection leak in our application. There is a logAbandoned parameter for dbcp but I can figure out how to configure it in cocoon 2.1.7/tomcat 5.5.9/mysql 4.1.11. The documentation on this is"sparse". Is there a better way to find connection leaks? Thanks. joel

bug in authentication framework or input module: session-context????

2006-01-17 Thread Hans-Peter Maurer
discription: (everything is inside of an protected-pipeline of the authentication-framework) 1. i set session fields via setxml-statement (session transformer) 2. i checked it by using getxml-statement, result: previous setxml ok! 3. after setting session fields i used the session-context input

RE: Dyamic datasource configuration (2.1.7) is this possible?

2006-01-17 Thread Rob Gregory
Hi Geert, firstly many thanks for your comments - much appreciated. After posting I thought my description may be a little vague... To clarify, by dynamic I need to be able to read from the database (I originally connect with an external manual single connection) to read the available

RE: Help finding dbcp connection leaks

2006-01-17 Thread Rob Gregory
Hi Joel, A good bit of software for this is Borland Server Trace BUT they got greedy and the last time I checked Borland wanted about 50K for a single user license!!! After that I dumped Jbuilder (at over 1k per developer) for Eclipse and we have NEVER looked BACK which is prob why they

how to run two cocoons in a tomcat

2006-01-17 Thread Johnson
Hi! I want to run two cocoons in a tomcat, how to set it. Best Regards johnson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ajax multivaluefield/double-listbox problem

2006-01-17 Thread Antonio Gallardo
Hi Fabrizio, I did some fixes in the AJAX block after 2.1.8 release, can you try to from the lastest SVN code and report back if the issue is already fixed? Best Regards, Antonio Gallardo. Fabrizio Sitzia wrote: Hello, I've digged a bit in the source myself ...and found out two things:

Re: Design help/questions for cforms application

2006-01-17 Thread Antonio Gallardo
Hi Duncan, You might use Control Flow continuations for the whole process. It will help you a lot wiith all decribed tasks. See http://cocoon.apache.org/2.1/userdocs/flow/continuations.html Best Regards, Antonio Gallardo. Duncan McLean wrote: Hi We are currently trying to develop a

AW: how to run two cocoons in a tomcat

2006-01-17 Thread Merico Raffaele
Hi Johnson Just copy/install the cocoon/build/webapp into the tomcat/webapps directory with a different name. For example: - tomcat/webapps/cocoon-appl-1 - tomcat/webapps/cocoon-appl-2 Instead of the name cocoon-appl-n you can choose what ever you need. Hope this helps Raffaele I want to

Re: how to run two cocoons in a tomcat

2006-01-17 Thread Johnson
tks, But they the same name in web.xml, is it all right? Best Regards johnson - Original Message - From: Merico Raffaele [EMAIL PROTECTED] To: users@cocoon.apache.org Sent: Wednesday, January 18, 2006 2:43 PM Subject: AW: how to run two cocoons in a tomcat Hi Johnson Just

AW: how to run two cocoons in a tomcat

2006-01-17 Thread Merico Raffaele
I did not change anything in web.xml. Having for example the following two cocoon instances appl1 and appl2 installed on my system, I can invoke them by: - http://localhost:8080/appl1 - http://localhost:8080/appl2 Raffaele tks, But they the same name in web.xml, is it all right? Best

Re: how to run two cocoons in a tomcat

2006-01-17 Thread Edwin Kapauni
Johnson wrote: Hi! I want to run two cocoons in a tomcat, how to set it. Best Regards johnson According to http://wiki.apache.org/cocoon/CocoonEasyInstallation you could just configure them in server.xml like Engine defaultHost=localhost name=Catalina [...] Host appBase=../SomeDir1

Re: Dyamic datasource configuration (2.1.7) is this possible?

2006-01-17 Thread Geert Josten
After posting I thought my description may be a little vague... (snip) Any keywords for Google or code samples are more than welcome in my pursuit to get this working... I'll just supply some code snippets, they might give you new ideas.. (or not) :-P One additional note: we decided to