Re: Accessing authentication/ID through JX Generator

2004-07-22 Thread Derek Hohls
Nick FWIW, I am using: ${parameters.getParameter('userID')} in my JXTemplates to get the userID, after it has been passed as a parameter in the pipelines. Derek [EMAIL PROTECTED] 2004/07/22 05:16:44 AM Hi everybody, I got stuck trying to pass the User Name into a Portal Engine pipeline.

Generating JavaDoc JavaDoc excecution build failed

2004-07-22 Thread beyaNet
Hi, I am currently trying to build cocoon + war file on windows 2000 advanced server utilising j2sdk1.4.2_05. I am using tomcat 5.0.27 and cocoon 2.1.5.1. The problem occurs when the build gets to building the javadocs and then bombs out! It seem that there is an blocks-build.xml:544:

Re: Serialization encoding problem

2004-07-22 Thread Upayavira
Ray Allis wrote: Z.Z. wrote: Hi All, I use Cocoon 2.1.5.1 in Linux environment. Character set of my xmls is utf-8. All of setting is utf-8 (web.xml, sitemap.xmap, xsls...) When I see source of my generated htmls, character set is utf-8. But in body all of accented char is made by acuted

Re: Serialization encoding problem

2004-07-22 Thread gounis
try to use disable-output-escaping=yes xsl:value-of select=. disable-output-escaping=yes/ -- stavros On Wed, 21 Jul 2004, Z.Z. wrote: Hi All, I use Cocoon 2.1.5.1 in Linux environment. Character set of my xmls is utf-8. All of setting is utf-8 (web.xml, sitemap.xmap, xsls...) When I

using jython/python for cocoon cform flow

2004-07-22 Thread Patrick Verboom
Hi, I am not a big fan of JavaScript but I am of python. So I would like to use jython/python instead of JavaScript. Is there any documentation of how to do this? Some examples maybe? Or can someone give me some answers on the hand of a small example here. The following example is in JavaScript

Directory Generator - Absolute Path

2004-07-22 Thread Harald Wehr
I want the DirectoryGenerator output the full absolute path of every file in a directory but didn't get to manage it. What parameters do I have to provide in the sitemap? Example: Directory to generate: /home/harald/temp |_1.xml |_2.xml The output of the generator should contain the

Re: simple flowscript array question

2004-07-22 Thread John L. Webber
Hi Greg, I'm not a javascript expert, but have you tried: var array = new Array(3); See: http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/array.html#1193137 Hope this helps, John Greg Weinger wrote: Hi, I am simply trying to create a javascript array in flowscript. The

Re: [esql] CForm textarea + ESQL=cannot save character ' in the database

2004-07-22 Thread Joose Vettenranta
Hi, you should not do INSERT in that way.. It's a way to SQL Injection attacks. Every parameter which can be changed by user or a hacker should be checked and rechecked. So, do insert like this in ESQL+XSP: esql:query INSERT INTO tablename (field1, field2) VALUES ( esql:parameter

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Derek Hohls
Matt The pipeline concept seems OK, but the XSL looks a little complex to me... can you not just have something like: xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:sql=http://apache.org/cocoon/SQL/2.0; xsl:template match=my-sql-stuff

[CForms] empty field of type integer

2004-07-22 Thread mathias . wiegard
Hi, I'm trying to use a cforms-field of type integer in combination with an appropriate converter. I don't want this field to be required so an empty value could be possible. But if this happens, the convertor will throw an exception that it cannot convert an empty value to an integer...

JXPath newbie question

2004-07-22 Thread Jennifer Yip
Hi guys just started using cocoon this morning and one area I need to focus is JXPath expression. Need your newbie help - sorry to be a pain. Ok I have a class wrapped around a 2d Array public static class ArrayTest { String ts[][] = { { ABC, DEF },

RE: Set Validation Error

2004-07-22 Thread Bruno Dumon
On Thu, 2004-07-22 at 06:09, [EMAIL PROTECTED] wrote: Yes the if condition evaluates to true and the test method does get called. Then the validation error should be set on the widget, how can you be sure it isn't set? -Original Message- From: Bruno Dumon [mailto:[EMAIL PROTECTED]

Re: [CForms] empty field of type integer

2004-07-22 Thread Bruno Dumon
On Thu, 2004-07-22 at 10:10, [EMAIL PROTECTED] wrote: Hi, I'm trying to use a cforms-field of type integer in combination with an appropriate converter. I don't want this field to be required so an empty value could be possible. But if this happens, the convertor will throw an exception that

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Matt Rich
Hello! Thanks for your answer. Here's my code : (in reqparam.xsl) !-- i fetch the xml data necessary to generate the request-- xsl:for-each select=/requetes/requetesparam/[EMAIL PROTECTED] $noreq] sql:execute-query sql:query !-- I call the template that generates the request --

Re: using jython/python for cocoon cform flow

2004-07-22 Thread Reinhard Poetz
Patrick Verboom wrote: Hi, I am not a big fan of JavaScript but I am of python. So I would like to use jython/python instead of JavaScript. Is there any documentation of how to do this? Some examples maybe? Or can someone give me some answers on the hand of a small example here. The following

Re: simple flowscript array question

2004-07-22 Thread Olivier Billard
Hi Greg, What about var array = new Array(3); http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/array.html#1193137 -- Olivier Billard Greg Weinger wrote: Hi, I am simply trying to create a javascript array in flowscript. The wiki and docs are peppered with such examples:

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Derek Hohls
Matt When you say The requests are correctly generated do you mean the SQL is in the right XML wrappers and format to be processed by the SQL transformer... if so, then the problem might lie with your query itself. Also check the logs to see if any error is being reported there. Derek [EMAIL

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Matt Rich
Hello Derek Le 22 juil. 04, à 11:27, Derek Hohls a écrit : Matt When you say The requests are correctly generated do you mean the SQL is in the right XML wrappers and format to be processed by the SQL transformer... No, that's precisely that I can't have the wrappers appear that's why I wanted to

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Derek Hohls
Matt I think you will have to post a sample of the input XML file and the reqparam.xsl file that is supposed to do the transform, and we can see why its not working the way it should... Derek [EMAIL PROTECTED] 2004/07/22 11:37:03 AM Hello Derek Le 22 juil. 04, à 11:27, Derek Hohls a écrit

MultiValueField's binding problem

2004-07-22 Thread Noureddine BEKRAR
Hi, I have a very complicated problem with multivaluesfield's binding: All is ok when i load the bean, but when i try to save the form i have this error message: org.apache.commons.jxpath.JXPathException: Exception trying to create xpath modulesIDsList[1]; Factory is not set on the

regexp matcher

2004-07-22 Thread Rui Alberto L.
Hi all, I'm trying to use regexp matcher, but I'm missing something. I have the following matcher: (*1) map:match pattern=main-((\/\w+)+)-(\w+)-(\d)-(\d) type=regexp I'm expecting this pipeline to match things like: main-/mart-duracao-1-1 or main-/mart/clientes-chamadas-1-1 etc.. the html

InputModule configuration

2004-07-22 Thread szefu18
Hello users, mhelper is type InputModuleHelper This code obtains value from InputModule: Object value = (Object) mhelper.getAttribute(pobjectModel, cfg,module,name, null); It work's but I want to pass 'run-time' Configuration to IM: DefaultConfiguration cfg = new DefaultConfiguration();

Re: regexp matcher

2004-07-22 Thread Rui Alberto L.
Sorry, let me explain again. I have the following match: map:match pattern=main-((\/\w+)+)-(\w+)-(\d)-(\d) type=regexp when this match succeeds, some html document is returned witch includes a scrip: src=HM_Arrays-/mart/clientes-30409142-day-asc.js When the browser is rendering the page,

Portal : 2 Global Profiles depending on URI?

2004-07-22 Thread Philippe Guillard
Hi all, I'd like to use the same portal with 2 Global Profiles depending on URI requested. Lets say i have www.mysite.net and category.mysite.net, after URLrewriting i could have www.mysite.net/potal/portal/1 and www.mysite.net/portal/portal/2 that i'd like to render with profile/layout1 and

Re: [CForms] using flowscript without continuation

2004-07-22 Thread Upayavira
I've seen that you have got no response to your question and it deserves one. Unfortunately, I can't help directly. Basically, CForms can work fine without continuations - I'm using an action based system at the moment, so no continuations there. I would very much like to see a Forms.js that

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Olivier Billard
Hi Matt, Using XSP and the ESQL taglib is way simpler for your example. see http://cocoon.apache.org/2.1/userdocs/xsp/esql.html Matt Rich wrote: Hello! I'm currently trying to display sql request results in dropdown menus . I think i must have three Transformers in my pipeline: - I generate the

Catching java exception in flowscript?

2004-07-22 Thread kranga
Is it possible to catch java exceptions in flow scripts? If yes, can someone send me a snippet? Thanks -K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Derek Hohls
Sorry, I disagree - XSP is pretty much deprecated and certainly not necessary in this case... Derek [EMAIL PROTECTED] 2004/07/22 03:02:43 PM Hi Matt, Using XSP and the ESQL taglib is way simpler for your example. see http://cocoon.apache.org/2.1/userdocs/xsp/esql.html Matt Rich wrote:

RE: Catching java exception in flowscript?

2004-07-22 Thread moinuddin.ahmed
try{ // }catch(exception){ } -Original Message- From: kranga [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 6:36 PM To: [EMAIL PROTECTED] Subject: Catching java exception in flowscript? Is it possible to catch java exceptions in flow scripts? If yes, can someone send me a

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Derek Hohls
Matt Please post the *full* code for the source XML file and the XSL which processes it - you're welcome to send direct to me if you don't want it on the mailing list - we can post the just relevant solution back here for anyone else that has this problem. Derek [EMAIL PROTECTED] 2004/07/22

Pasing XML via XPath within flow?

2004-07-22 Thread Stephan Coboos
Hello, is there a utility in cocoon available which returns me a node selected via xpath? Something like that: Node myNode = XPathUtility.select(mydoc.xml, /news/[EMAIL PROTECTED]); Thank you. Regards Stephan - To unsubscribe,

Re: Catching java exception in flowscript?

2004-07-22 Thread Olivier Billard
Hi Kranga, This works : try { } catch (exception) { print(exception.message); } (http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/stmt.html#1051663) kranga wrote: Is it possible to catch java exceptions in flow scripts? If yes, can someone send me a snippet?

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Olivier Billard
Matt Rich wrote: Hello! Thanks for your answer. Here's my code : (in reqparam.xsl) !-- i fetch the xml data necessary to generate the request-- xsl:for-each select=/requetes/requetesparam/[EMAIL PROTECTED] $noreq] sql:execute-query sql:query !-- I call the template that

Re: Linking SQL Transformer and XSL Transformer

2004-07-22 Thread Olivier Billard
Hi Derek, For most purposes, XSP is not the right way to go, I agree. I personnaly switched to flow/java and I'm very happy. But if you look at the dev-list, you will see that currently, there is no best alternative than XSP-ESQL to display simple result-lists like Matt seem to want to do : -

Re: Accessing authentication/ID through JX Generator

2004-07-22 Thread Nick
Hi Derek, Thank you very much for your reply. It seems like there is a neat alternative solutions. The user name (as well as other authentication info, like role) can be accessed by referencing the ID element: !-- Take submitted form and write it into the RSS file -- map:match

Re: Directory Generator - Absolute Path

2004-07-22 Thread [EMAIL PROTECTED]
Harald Wehr wrote: I want the DirectoryGenerator output the full absolute path of every file in a directory but didn't get to manage it. What parameters do I have to provide in the sitemap? Example: Directory to generate: /home/harald/temp |_1.xml |_2.xml The output of the generator should

Re: using jython/python for cocoon cform flow

2004-07-22 Thread Jean-Baptiste Quenot
* Reinhard Poetz: Unfortunatly this is not that easy. First you (we) would need a Python interpreter that is able to manage continuations which doesn't exist, AFAIK. Yes it exists, it is called [1]Stackless. -- Jean-Baptiste Quenot Anyware Technologies [1]

Cocoon XSLTC

2004-07-22 Thread Simon King
Title: Cocoon XSLTC Hi there I've just recently started looking into Cocoon as a replacement for a simple PHP/libxslt portal, but I'm having some difficulty getting XSLTC to function correctly as a cocoon transformer. I'm using Cocoon 2.1.5.1, Tomcat 5.0.25, Sun JDK 1.4.2_05 with Xalan

Re: using jython/python for cocoon cform flow

2004-07-22 Thread Tony Collen
Jean-Baptiste Quenot wrote: * Reinhard Poetz: Unfortunatly this is not that easy. First you (we) would need a Python interpreter that is able to manage continuations which doesn't exist, AFAIK. Yes it exists, it is called [1]Stackless. Last time I checked there were no plans to port Stackless

org.quartz.SchedulerException: Scheduler with name 'Cocoon' already exists

2004-07-22 Thread Rice Yeh
Hi, I run cocoon 2.1.5 on Sun's J2EE RI 1.4 with the following error message. There is no such error when running on tomcat 4.1.3. What is wrong? Original Exception: org.quartz.SchedulerException: Scheduler with name 'Cocoon' already exists. at

[RE] simple flowscript array question

2004-07-22 Thread Greg Weinger
Oliver, Thanks. I've tried this, and get the same exception. None of the references seem to apply. It is possible to create a **JAVA** array, using: var = Packages.java.lang.reflect.Array.newInstance(Class,number); But the standard javascript syntax throws errors. I'm using cocoon 2.1.5

RequestAttributeSelector not finding parameter!

2004-07-22 Thread Rui Alberto L.
Hi all, I'm trying to use RequestAttributeSelector, but I can't understand what's wrong here: sitemap.xmap: map:match pattern=main map:act type=session-isvalid map:act type=request map:parameter name=parameters value=true/ map:select type=request-attribute

cocoon url

2004-07-22 Thread beyaNet
Hi, I am running cocoon version 2.1.5.1 on tomcat 5.027 hooked off apache 2.0.50. At the moment, with mod_jk2 I have my url as http://www.mysite.com/cocoon/nextlevel. how do I adjust the settings in apache so that I can have http://www.mysite.com/nextlevel many thanks in advance Andrew

[RE] simple flowscript array question

2004-07-22 Thread Greg Weinger
Ugh. Sorry, I found a separate script in the sitemap was importing java.lang.reflect.Array. This polluted the namespace and broke the javascript syntax. Mystery solved. Oliver, Thanks. I've tried this, and get the same exception. None of the references seem to apply. It is possible to

Re: cocoon url

2004-07-22 Thread Neo99
Hello Andrew Try changing: $CATALINA_HOME/conf/server.xml so it includes an entry for the cocoon webapp like this: Context path= docBase=cocoon debug=0 / Making sure that any other entry where path= is commented out... I'm new to Cocoon, but have just done this myself... any confusion please let

Unfathomable behaviour from flowscript

2004-07-22 Thread Colin Paul Adams
The following is a cut-down version of a flowscript function that I am using to display a form: function dbxmlevents2xml ( form ) { var finish_page = calendar.html // Get the documentURI parameter from the sitemap which contains the // location of the file to be edited.

Re: cocoon url

2004-07-22 Thread beyaNet
Hi, I tried your recommendation but without success. Any ideas anybody? regards Andrew On 22 Jul 2004, at 23:03, Neo99 wrote: Hello Andrew Try changing: $CATALINA_HOME/conf/server.xml so it includes an entry for the cocoon webapp like this: Context path= docBase=cocoon debug=0 / Making sure that

Re: cocoon url

2004-07-22 Thread Tony Collen
beyaNet wrote: Hi, I tried your recommendation but without success. Any ideas anybody? It's in the FAQ :) http://cocoon.apache.org/2.1/faq/faq-configure-environment.html#faq-N10006 Regards, Tony - To unsubscribe, e-mail: [EMAIL