Re: Could not transform esql.xsl

2002-10-23 Thread Christian Haul
On 23.Oct.2002 -- 09:48 AM, Martin Schimak wrote: Trying to access my ESQL-XSPs with a 2.1-dev CVS Snapshot, I receive the following error: Could you check that esql.xsl is included in your jar? It has been missing in snapshots 'till tuesday. Chris. -- C h r i s t i a n H a u l

Re: mod-db action yields 'CALL IDENTITY()' MySQL syntax error

2002-10-25 Thread Christian Haul
On 24.Oct.2002 -- 09:38 PM, Samuel Bruce wrote: Hello, I'm using the latest CVS, TC 4.1.12, JDK 1.4.01. The mod-db action inserts the first row correctly, but fails on the second row insert. It seems to also fail attempting to rollback. Anything you can do to help is appreciated.

Re: Throwing an Exception within ESQL

2002-10-25 Thread Christian Haul
On 25.Oct.2002 -- 10:42 AM, Michael Edge wrote: Hi In the XSP snippet below I'd like to throw an exception from within esql:no-results. My questions are: how do I do this and will the exception be caught by the map:handle-errors section of the sitemap? If you really want, you could throw

Re: Problem in mod-db again

2002-10-26 Thread Christian Haul
On 25.Oct.2002 -- 10:05 AM, [EMAIL PROTECTED] wrote: You can get the same effect if you try and use samples/mod-db/user-list. If you add a group you get no error, but if you add a person, person-group you get the following error. This should be resolved since tuesday for 2.1. Patches for 2.0

Re: [SUMMARY] Problem in mod-db again

2002-10-26 Thread Christian Haul
On 26.Oct.2002 -- 04:47 AM, Antonio Gallardo Rivera wrote: Sorry, my own fault :( I only rewrote the key from: key name=usr_id type=long to: key name=usr_id type=int I consider this at least an omission. A patch is already queued and will show up Monday or so. Thanks for spotting it!

Re: Concept problem using modular actions ..

2002-10-28 Thread Christian Haul
On 28.Oct.2002 -- 02:07 PM, Rui Leal wrote: Hi ALL! I've been working and testing cocoon for about 3 weeks ... after some simple examples i started some more complex stuff .. Right now i´m trying to understand the proper way to work with modular actions .. so imagine this ... One

Re: Concept problem using modular actions ..

2002-10-28 Thread Christian Haul
On 28.Oct.2002 -- 03:39 PM, Christian Haul wrote: On 28.Oct.2002 -- 02:07 PM, Rui Leal wrote: 2.0.4-CVS will get updated. In the mean time, it should be safe to copy it together with the AbstractMetaModule from 2.1 to 2.0.4, rebuild, and add it to cocoon.xconf if you need it fast. Actually

Re: Concept problem using modular actions ..

2002-10-30 Thread Christian Haul
On 28.Oct.2002 -- 04:47 PM, Rui Leal wrote: .. Ok .. i´ve been using 2.0.3 .. it seems the stable one ! :) .. Btw is there some list of 2.0.3 bugs or problems ? It should be possible to query Bugzilla for bug reports for 2.0.3. Changes are mostly reflected in the changes.xml file. So you could

Re: FormValidatorAction

2002-10-30 Thread Christian Haul
On 29.Oct.2002 -- 12:22 PM, Ray Martin wrote: using a descriptor file like employee-form.xml in the tutorial directory. have FormValidatorAction called from the sitemap. a line in core.log states All form params successfully validated - written by FormValidatorAction. no other lines from

Re: Accessing the output of a modular input module in xsp

2002-10-30 Thread Christian Haul
On 30.Oct.2002 -- 08:45 PM, Hugo Burm wrote: How can I access the output of an input module in an XSP page? I am talking about the input modules as they are used by the modular database actions in 2.1-dev (org\apache\cocoon\components\modules\input). I have written my own input module

Re: New name of the input-module name=URI/...

2002-10-31 Thread Christian Haul
On 31.Oct.2002 -- 02:41 AM, Antonio Gallardo Rivera wrote: Hi, I am using 2.1 (lastest CVS): What is the new name of input-module name=URI/? I have in the sitemap: map:matcher logger=sitemap.matcher.modular.non-cached name=uri

Re: New name of the input-module name=URI/...

2002-10-31 Thread Christian Haul
On 31.Oct.2002 -- 05:22 AM, Antonio Gallardo Rivera wrote: Thanks Chris. Can I remove it? Antonio, remove what? Antonio Gallardo. El Jueves, 31 de Octubre de 2002 05:10, Christian Haul escribió: On 31.Oct.2002 -- 02:41 AM, Antonio Gallardo Rivera wrote: Hi, I am using 2.1

Re: New name of the input-module name=URI/...

2002-10-31 Thread Christian Haul
On 31.Oct.2002 -- 07:40 AM, Antonio Gallardo Rivera wrote: El Jueves, 31 de Octubre de 2002 06:29, Christian Haul escribió: On 31.Oct.2002 -- 05:22 AM, Antonio Gallardo Rivera wrote: Thanks Chris. Can I remove it? Antonio, remove what? This: input-module name=URI/ from my sitemap

Re: Accessing the output of a modular db action in xsl

2002-10-31 Thread Christian Haul
On 31.Oct.2002 -- 07:57 AM, [EMAIL PROTECTED] wrote: I am struggling with the dbselect action. When I check the sitemap, I am able to see that the select is working and dumping the values to the sitemap. My problem is how to access the values from within an xsl. Are there any This

Re: Cocoon 2.0.3 ESQL PreparedStatment: maybe not working?

2002-10-31 Thread Christian Haul
Christian SCHRÖTER wrote: Hi, I have cocoon 2.0.3 installed and I want to use esql. In the documentation is written that esql _also supports_ prepared statment. So I have written a small db-access-page to insert something into my db. But if i try to insert something with an ' in it, it doesnt

Re: Accessing the output of a modular db action in xsl

2002-11-01 Thread Christian Haul
On 31.Oct.2002 -- 01:08 PM, [EMAIL PROTECTED] wrote: Is there an example of how to do this available? From XSL? I don't think so. At least not specifically with database actions. There sure is one on accessing request attributes from xsl -- although I don't know off head. Chris. -- C h

Re: Differences in ESQL between Version 2.0 and later?

2002-11-01 Thread Christian Haul
On 01.Nov.2002 -- 10:44 AM, Derek Hohls wrote: Can someone please confirm that the esql:group and esql:member tags/functionality was only added *after* version 2.0 of Cocoon - and Derek, I believe so. You can always look at the cvs entries or simply unpack your cocoon.jar and look at the xsl

Re: Differences in ESQL between Version 2.0 and later?

2002-11-01 Thread Christian Haul
On 01.Nov.2002 -- 11:58 AM, Derek Hohls wrote: Thanks Chris I assume one has to have the code base to do this - I only have the binary version and so cannot find any trace of those files... The esql.xsl is included in any version. The Esql*.java obviously not. Only the compiled classes.

Re: Accessing the output of a modular db action in xsl

2002-11-02 Thread Christian Haul
On 02.Nov.2002 -- 07:22 AM, Phil Craven wrote: When I try and get the bulk of the params that I am looking for, it seems as if they are lost between level 3 and level 2. I believe that my stylesheet is trying to access the params at level 2. How do I force the propagation of the values

Re: Accessing the output of a modular db action in xsl

2002-11-04 Thread Christian Haul
any help on either getting at those values in xsl I would greatly appreciate the help. phil On Saturday 02 November 2002 10:48 am, Christian Haul wrote: On 02.Nov.2002 -- 07:22 AM, Phil Craven wrote: When I try and get the bulk of the params that I am looking for, it seems

Re: how to manage several XMLForms in a sitemap? (it was: dynamicallychoosing an action at runtime)

2002-11-05 Thread Christian Haul
Josema Alonso wrote: So, an Action Dispatcher (or call it Proxy Action or whatever) is needed so the action could be choosed at runtime. Unfortunately this involves working with Avalon components and I have no idea about them. I tried their white paper at their website but it is too hard for me

Re: Accessing the output of a modular db action in xsl

2002-11-05 Thread Christian Haul
On 04.Nov.2002 -- 07:43 PM, Phil Craven wrote: here is the sitemap segment that shows what I am trying to do. map:match pattern=group2.xsp map:act type=mod-db-sel action=sel-ci map:parameter name=table-set value=content_item/ map:generate type=serverpages

Re: how to manage several XMLForms in a sitemap? (it was: dynamically choosing an action at runtime)

2002-11-08 Thread Christian Haul
On 07.Nov.2002 -- 06:53 PM, Josema Alonso wrote: [snip] //get the Action if(actionName.equalsIgnoreCase(EquipmentTypeAction)) { EquipmentTypeAction equipmentTypeAction = new EquipmentTypeAction(); //add this action to the manager equipmentTypeAction.compose(this.manager); This

Re: Using matchers, especially sessionstate...

2002-11-11 Thread Christian Haul
On 07.Nov.2002 -- 09:44 AM, Christian Joelly wrote: Hello! thanks for your answer. I'd prefer to use the version 2.0.1 for this application, because maybe there are some other problems rising when i switch the cocoon version during development... ;-) Fair enough. OTOH many issues have been

Re: Using matchers, especially sessionstate...

2002-11-12 Thread Christian Haul
On 11.Nov.2002 -- 03:29 PM, Christian Joelly wrote: Hello! On Mon, Nov 11, 2002 at 11:17:15AM +0100, Christian Haul wrote: On 07.Nov.2002 -- 09:44 AM, Christian Joelly wrote: thanks for your answer. I'd prefer to use the version 2.0.1 for this application, because maybe

Re: [REQ] Validation actions

2002-11-13 Thread Christian Haul
On 13.Nov.2002 -- 12:49 PM, Cedric Picard wrote: map:match pattern=*.html map:act type=ensureLoggedIn map:generate type=serverpages src=documents/{1}.xsp / map:transform src=stylesheets/{1}.xsl / map:serialize type=html / /map:act

Re: Caching results of SQL Queries?

2002-11-15 Thread Christian Haul
On 14.Nov.2002 -- 11:37 AM, Jeremy Quinn wrote: Dear All, I have a set of related Tables in MySQL, which are used to build part of a site I am working on. We use SQL because of the related nature of the data, rather than any great need for dynamics. My SQL queries are broken down

Re: Forms

2002-11-15 Thread Christian Haul
On 13.Nov.2002 -- 06:12 PM, Jos? Moreira wrote: hello, in my company we use apache+ php + postgre and we spend most of the time building table-manipulation forms ( for insert,update,delete,etc) is it possible to ( in cocoon ) create standard actions ( or else) to manipulate a xml file

Re: Passing database result as parameter in XSL

2002-11-20 Thread Christian Haul
Ebert Andreas wrote: Hi Leszek, xsl:call-template name=category xsl:with-param name=categoryidesql:get-int column=categoryid//xsl:with-param /xsl:call-template If I hardcode the parameter (e.g. replace 'esql:get-int column=categoryid/' with '4') everything works fine. AFAIR you are allowed

Re: Two ESQL Questions

2002-11-20 Thread Christian Haul
Michael Edge wrote: I have a couple of ESQL questions: 1) If an ESQL query throws a database exception, is there any way to log the stack trace to a file? Database exceptions are either rethrown as processing exceptions or handled by the code in esql:error-results This applies only for those

Re: ESQL exception problem

2002-11-20 Thread Christian Haul
Leszek Gawron wrote: I know that including esql:error-results in esql:connection prevents from throwing exceptions. The problem is that if the database is unreachable the RuntimeExceptions is throw by esql and this one is not caught by errors-results. So if you want to manage all esql errors you

Re: xsp-util:include-expr problem

2002-11-20 Thread Christian Haul
Parmley, Scott C. wrote: Hello. I am trying to include some generated xml from another object in an XSP docment using xsp-util:include-expr Here's a code snippet to show you what I've done. vendor-table xsp:logic String fxml = ; try { fxml =

Re: Cocoon GetTogehter in Ghent

2002-11-21 Thread Christian Haul
A big hand to Steven and all that helped organize this wonderful event! Thank you! It was great meeting you all. Hope to see you all soon again in real life. (Gosh, did you know real life does exist?! ;-) Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0

Re: esql:group

2002-11-26 Thread Christian Haul
On 25.Nov.2002 -- 01:33 PM, Christian Joelly wrote: Hello! did anybody use more than one esql:group / esql:member with Cocoon 2.0.3 in one resultset? like this: esql:row-result esql:group group-on column1 esql:member esql:group group-on

Re: Access Cocoon ESQL connection pool in JavaBean

2002-11-28 Thread Christian Haul
On 28.Nov.2002 -- 12:13 PM, Kirchhoff, Lars wrote: Hello, after playing around with XMLForms, I could manage to get it working with some database support, but I'm wondering about using the same connection pool than cocoon does with xsp:esql. I'm currently loading the postgres driver

Re: with Cocoon 2.0.3 include-expr does'nt work

2002-11-29 Thread Christian Haul
On 29.Nov.2002 -- 01:50 PM, LEBRETON Philippe wrote: With cocoon 2.0.2, i use include-expr to include string with XML data in my XML: util:include-exprutil:exprSortieXML/util:expr/util:include-expr and it work. Although the error message does not fit the diagnosis, please add xsp:expr/ around

Re: Environment variable

2002-12-04 Thread Christian Haul
On 04.Dec.2002 -- 09:43 AM, Olivier GUCKERT wrote: Hello all ! The home of my webapp will soon move, and i want to declare it with an environment variable. So i define an environment variable and replace the path to the directory of my website sitemap.xmap with this variable : so :

Re: [ESQL] - Postgresql 7.3: LIMIT x,y no longer supported

2002-12-04 Thread Christian Haul
Antonio Gallardo wrote: Hi Christian: When you will be this a MUST be? I am using PostgreSQL. 7.2.2 I hope there will be a workaround of this. Antonio, please gimme a hint: what is no longer supported and what do you think caused this / what makes you believe support is gone? As for the

[SUMMARY] input.xsl / xsp:exit-page / xsp:init-page (was: Can youexplain a little more about that?)

2002-12-04 Thread Christian Haul
Antonio Gallardo wrote: Hi Christian: I saw you recently commited this changes: 1- New Logicsheet for use with InputModules. (CH) Antonio, input.xsl is a very simple logicsheet, it contains three tags input:get-parameter/, input:get-parameter-values/ and input:get-parameter-names/ which

Re: [SUMMARY] input.xsl / xsp:exit-page / xsp:init-page (was: Canyou explain a little more about that?)

2002-12-05 Thread Christian Haul
Konstantin Piroumian wrote: Hi! Why the names of tags are not: input:get-attribute / input:get-attribute-names / etc.? Good point. My reasoning was that get-parameter is the most visible / most used tag from the request logicsheet. And since I see this as a replacement, I thought differences

Re: [SUMMARY] input.xsl / xsp:exit-page / xsp:init-page (was: Can you explain a little more about that?)

2002-12-06 Thread Christian Haul
On 05.Dec.2002 -- 01:25 PM, Konstantin Piroumian wrote: From: Antonio Gallardo [EMAIL PROTECTED] Christian Haul dijo: Konstantin Piroumian wrote: Hi! Why the names of tags are not: input:get-attribute / input:get-attribute-names / etc.? Good point. My reasoning

Re: Pleeese! retrieving xml code as out-parameter

2002-12-06 Thread Christian Haul
On 06.Dec.2002 -- 12:19 PM, Gabriele Domenichini wrote: I need to retrieve xml data from Oracle database as an out-parameter. The stored procedure works but the output is like this: lt;rootElementgt; lt;elementgt; Something written lt;/elementgt; lt;/rootElementgt; I think that SQL

Re: Synthax problems for links from an ESQL field!

2002-12-06 Thread Christian Haul
On 06.Dec.2002 -- 03:01 PM, [EMAIL PROTECTED] wrote: Hello, I want a link on every ID, what is the synthax to get the value from the variable : esql:get-string column=wfID/ after this view-workflow?myID=1 (instead of 1) esql:row-results tr tda

Re: Request parameters for SQL arguments

2002-12-06 Thread Christian Haul
On 06.Dec.2002 -- 03:47 PM, Scherler, Thorsten wrote: Sorry, that is much better (use xsp:expr/): select * From AllTask Where wfID=xsp:exprxsp-request:get-parameter name=myID//xsp:expr Please imagine what happens if myID evaluates to ; update AllTasks set done = 1; -- IOW you should use

Re: Request parameters for SQL arguments

2002-12-06 Thread Christian Haul
On 06.Dec.2002 -- 04:13 PM, [EMAIL PROTECTED] wrote: I use ESQL, the beginning of my page is like this : ?cocoon-process type=xsp? ?cocoon-process type=xslt? ?xml-stylesheet href=stylesheets/dynamic-page2html.xsl type=text/xsl? xsp:page language=java xmlns:xsp=http://apache.org/xsp;

Re: ignore NULL values in XSP

2002-12-09 Thread Christian Haul
On 09.Dec.2002 -- 10:18 AM, Robert S?semann wrote: Hello, can you imagine a shorter and more elegant way to ignore null values from adb? esql provides a tag to check for null. What I mean is, that I only want to create an LINKID element when the database not returns a null or nothing

Re: Oracle SP with ESQL an c2 2.0.3

2002-12-10 Thread Christian Haul
On 10.Dec.2002 -- 12:26 PM, Gabriele Domenichini wrote: I had this stored procedure running well with SQL Transformer: query lang=1 isstoredprocedure=true begin dbchem.scheda_xml('substitute-value sql:name=lingua/', ?, 'substitute-value sql:name=codice/',

Re: Accessing DatabaseAddAction result

2002-12-10 Thread Christian Haul
On 10.Dec.2002 -- 05:05 PM, Matthias Brunner wrote: Hello, is there any way to find out whether a DatabaseAddAction was successful / display the error message? I would like to do the following: map:match ... map:action-set name=mydb map:parameter .../

Re: Accessing DatabaseAddAction result

2002-12-10 Thread Christian Haul
On 10.Dec.2002 -- 05:57 PM, Matthias Brunner wrote: On Tuesday 10 December 2002 17:19, Christian Haul wrote: At least the one from the modular package does set the error message as request attribute. Thanks for your reply. Do you know whether this is in 2.1 only? (I cannot grep

Re: XML-Output from Helperclass

2002-12-15 Thread Christian Haul
Nils Leßmann wrote: Hi! How can I use xml-output from java-classes in my xsps? I have a class, say Foo and my logicsheet inserts something like xsp:exprFoo.showData()/xsp:expr in my xsp. The output from Foo is then escaped and all my tags end up in lt;taggt;... I really want to put the

Re: Using input modules

2002-12-18 Thread Christian Haul
On 18.Dec.2002 -- 10:00 AM, Vermeulen, Francis wrote: can anyone tell me how to make a sitemap recognize the use of an input module? I followed the documentation about using modules literally, but the sitemap generator does not seem to recognize the syntax. Here is the fragment of my sitemap:

Re: esql character encoding problem

2002-12-18 Thread Christian Haul
On 18.Dec.2002 -- 05:33 PM, [EMAIL PROTECTED] wrote: SORRY I'VE POSTED THIS YET BUT I FORGOT THE SUBJECT I'm using ESQL to read and write data from a MYSQL database. When I fill a field with non US characters, I see strange characters instead of the ones I expected. For example, when I

Re: Sessions and xsp:logic

2002-12-20 Thread Christian Haul
On 20.Dec.2002 -- 09:23 AM, [EMAIL PROTECTED] wrote: Hi, I'm checking in the xsp:logic part if a xsp-session is valid. If yes load this, else load that. Is there a way to do some kind of that. I'm trying to restrict a page. Or is there a other approach. I would suggest to put both branches

Re: Passing parameters to a logicsheet tag using xsp:param

2003-01-06 Thread Christian Haul
On 03.Jan.2003 -- 02:46 PM, Richard Bounds wrote: Dear all, I'm trying to write a logicsheet that accepts dynamic parameters from the XSP page (e.g. maybe request parameters, or session attributes), and uses them to request data from our application. I'd like the xsp code to look something

Re: Dynamic query in xsp:logic and esql:query

2003-01-06 Thread Christian Haul
On 05.Jan.2003 -- 04:44 PM, Yves Vindevogel wrote: Hi, I've got a form with one textbox (name) and a combobox (type) When the user presses submit, a searchpage is called where I execute this query (on postgres db) esql:query select *

Re: RequestParameterAction question

2003-01-06 Thread Christian Haul
On 30.Dec.2002 -- 02:40 PM, Anna Afonchenko wrote: Hi all. I am using RequestParameterAction to process parameters given in http request. My http request looks something like this: http://localhost:8080/cocoon/test?[EMAIL PROTECTED] here is my pipeline: map:match pattern=test

Re: ESQL and JavaScript

2003-01-08 Thread Christian Haul
On 08.Jan.2003 -- 10:53 AM, [EMAIL PROTECTED] wrote: I have a Javascript-Function, which gets a parameter passed. I want this parameter now in my ESQL-Statement. Is there a way to do this? Javascript (if client side) is completely unrelated to XSP and ESQL in particular. Server side Javascript

Re: ESQL and JavaScript

2003-01-08 Thread Christian Haul
On 08.Jan.2003 -- 11:50 AM, [EMAIL PROTECTED] wrote: Hi, I know its not the (to be harmless) nicest way, but my ESQL in JavaScript works fine. I just wanted to know if it is possible in Javascript-Functions to place passed parameters in ESQL-Statements. I'm missing something here: how do

Re: Comparison in ESQL doesn't work

2003-01-09 Thread Christian Haul
On 08.Jan.2003 -- 06:36 PM, [EMAIL PROTECTED] wrote: I have a strange problem. I'm trying to compare two values in the esql:row-results-Part with an if-compare, but somehow the if-construct is never entered even if there are matches. (I put the System.out's to see if there are matches. There

Re: trouble using xsp input logicsheet in cocoon 2.0.4

2003-01-09 Thread Christian Haul
On 08.Jan.2003 -- 04:19 PM, Timothy Larson wrote: When I try to use the XSP Input logicsheet in cocoon-2.0.4 I get this error: /org/apache/cocoon/components/language/markup/xsp/java/input.xsl; Line 199; Column 54; Could not find template named: get-string-attribute Looking in the cocoon

Re: ESQL and JavaScript

2003-01-09 Thread Christian Haul
On 09.Jan.2003 -- 05:10 PM, Cocoon User wrote: can someone explain me how is it possible this code to be valid without syntax errors? how can we have a markup language elemend [esql:any/] inside a javascript function (){ } Remember that the esql tags are already processed on the server

Re: sample using jxpath with input logicsheet?

2003-01-09 Thread Christian Haul
On 09.Jan.2003 -- 11:35 AM, Timothy Larson wrote: Is there a sample somewhere of using jxpath with the input logicsheet? I am trying to pick apart a dom that is stored in the session. Tim, I still need to think about your last mail. Anyway, here is an XSP that I use to test InputModules...

Re: esql:get-string has no column element

2003-01-10 Thread Christian Haul
On 10.Jan.2003 -- 03:20 AM, xx yy wrote: hi all, i'm trying to get data from a database with row- and columnnames specified through http-requests I tried: . . esql:get-string esql:column xsp-request:get-parameter name=column/ /esql:column /esql:get-string Try this instead:

Re: input modules in sitemap component definitions

2003-01-10 Thread Christian Haul
On 10.Jan.2003 -- 08:42 AM, Geoff Howard wrote: I have a global input module defined in map:component-configurations (2.1): map:pipelines map:component-configurations global-variables datasource-namea-string/datasource-name /global-variables ... Currently, I'm using values

Re: input modules in sitemap component definitions

2003-01-10 Thread Christian Haul
On 10.Jan.2003 -- 09:40 AM, Geoff Howard wrote: From: Christian Haul [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 8:56 AM To: [EMAIL PROTECTED] Subject: Re: input modules in sitemap component definitions 1) Is it currently possible to use input modules to define the value

Re: trouble using xsp input logicsheet in cocoon 2.0.4

2003-01-10 Thread Christian Haul
On 09.Jan.2003 -- 10:02 AM, Timothy Larson wrote: Thanks Chris, I got it mostly working with your information. A couple of issues, though: The first issue is that while this works fine: input:get-attribute module=session-attr as=string name=attr1 default=(Does not exist)/ this:

Re: Problem with return-value from store procedure in a XSP page

2003-01-07 Thread Christian Haul
On 07.Jan.2003 -- 03:46 PM, [EMAIL PROTECTED] wrote: Hello I have a cocoon version number 2.0.3, a tomcat version number 4.0.16 and an Oracle 8i database Cocoon 2.0.4 is released and fixes a number of bugs and Tomcat 4.1.18 is out containing security related fixes. I have a store procedure

Re: sql errors and esql

2003-01-13 Thread Christian Haul
On 13.Jan.2003 -- 09:47 AM, Sarah Windler wrote: Hi I don't understand, why some sql errors goes through the esql:error-results pipe and others not. For example: 1. SQL select mgmt_ip_addressm from v_ps_port_traffic; select mgmt_ip_addressm from v_ps_port_traffic * ERROR at line

Re: sql errors and esql

2003-01-13 Thread Christian Haul
On 13.Jan.2003 -- 10:57 AM, Windler Burri, Sarah wrote: Hi Thank you for your reply, but I am not agree: 1. Both errors in the example are runtime errors! Or more precisaly: Who decides, which error ist a syntax or runtime error? The try{ block starts just before prepareCall() or

Re: sql errors and esql

2003-01-13 Thread Christian Haul
On 13.Jan.2003 -- 12:26 PM, Sarah Windler wrote: Thank you for the hint. I am trying to understand, what you mean: 1.Setup the database connection -- setup error 2. Setup a prepStatement (con.prepareStatement(queryString) -- ??? 3. exeute the query: prepStmt.execute()] -- runtime

Re: How to encrypt password in DatabaseAuthenticatorAction??

2003-01-17 Thread Christian Haul
On 17.Jan.2003 -- 11:25 AM, Sternath Elmar wrote: Hello, I use DatabaseAuthenticatorAction and Update/AddDatabaseAction for my login/user administration procedure. All user info including password is stored as clear text in the database. Is there any solution for password encryption in this

Re: Flow questions

2003-01-17 Thread Christian Haul
On 16.Jan.2003 -- 08:17 PM, Miles Elam wrote: The next thought was Actions, but that was just keeping the code relatively out of sight. It seemed fairly clumsy for any non-trivial amount (more than 100 lines) of logic and made the sitemap kinda crufty as well. Next came Flow. Although

Re: Flow questions

2003-01-18 Thread Christian Haul
Miles Elam wrote: Christian Haul wrote: Why don't you code this in a java class and just use it from flow? Why would you want to code that in javascript? Because JavaScript has no compile step and is simpler. Unless you are expecting a high load on a resource (content inserts and updates

Re: XSP Redirection HELP!!!

2003-01-21 Thread Christian Haul
On 20.Jan.2003 -- 06:18 PM, Jim McCullough wrote: Don't know if this is what you are looking for but you can also use the sendRedirect (String url) of the HttpResponse object. Would look something like this: xsp:logic ((HttpResponse)response).sendRedirect (http://my_home_page;);

Re: Different stylesheets called on runtime?

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 02:36 PM, [EMAIL PROTECTED] wrote: Hi, I have for example an XSP and various XSLs for the output (of the data from that XSP). In the xsp:logic-part it should/is deceided on runtime, which one of the XSLs to use for the output. Where do I have to manage that? I mean,

Re: Different stylesheets called on runtime?

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 05:57 PM, Konstantin Piroumian wrote: From: Christian Haul [EMAIL PROTECTED] On 23.Jan.2003 -- 02:36 PM, [EMAIL PROTECTED] wrote: input module. Chris, how could you forget about it? ;) Dear me! But it looks like I successfully missionated so far ;-) Cheers

Re: Different stylesheets called on runtime?

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 05:42 PM, [EMAIL PROTECTED] wrote: int whichXSL; String report_id = request.getParameter(report_id); String service_id = request.getParameter(service_id); String nbt_pattern_id = request.getParameter(nbt_pattern_id); String search_txt =

Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 06:02 PM, Cyril Vidal wrote: Hi, I'm sorry if this question has already been asked before. I've checked out in the archives, but these seem to be available for the moment... I'm under Windows 2000, j2sdk1.4.1, and Cocoon 2.0.4 I just would like to perform an XSLT

Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 06:38 PM, Cyril Vidal wrote: Hi Chrisitian Thanks for your answer. My default generator was the 'file' one. that does not make sense (at least to me): map:generator type=file src=participants.xml/ but org.apache.cocoon.ProcessingException: Failed to generate program

Re: Different stylesheets called on runtime?

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 06:35 PM, [EMAIL PROTECTED] wrote: Unfortunately, you've skipped the crucial part i.e. how the xsl is chosen :-| I think I don't understand you right., but this should be just an dummy example. So if(whichXSL == 1) then the number1.xsl should be choosen for output,

Re: error:use Xalan in incremental processing mode

2003-01-23 Thread Christian Haul
On 23.Jan.2003 -- 07:08 PM, Cyril Vidal wrote: In the console, I've got the following: Errors in XSLT Transformation: Warning: File jar:file:/C:/tomcat/webapps/cocoon/WEB-INF/lib/Cocoon-2.0.4.jar/org/apache/c ocoon/components/language/markup/sitemap/java/sitemap.xsl; Line1817; Column34;

Re: simple question about RequestSelector

2003-01-25 Thread Christian Haul
Cyril Vidal wrote: Dear all, I would like to process an URI of the following type: http://localhost:8080/cocoon/hellococoon?langue=anglaiscritere=organisme The first parameter's role is to select a specified stylesheet: langue=anglais - select participantsEN.xslt langue=francais - select

Re: How can i use RequestParamAction and match fields in parallel ?

2003-01-27 Thread Christian Haul
On 26.Jan.2003 -- 11:57 PM, SAXESS - Hussayn Dabbous wrote: Hy; I want to use the RequestParam action to pass a parameter into an aggregation. In parallel the parts of the agregation shall be assembled from the match parameters {1} {2} ... My original sitemap leads to an Resource not

Re: set transformer source from generator

2003-01-27 Thread Christian Haul
On 27.Jan.2003 -- 08:20 AM, Robert S?semann wrote: Dear listmembers, maybe its answer is easy but I couldn't find an answer in the archieves. I need to dynamically set the transformer source based on a parameter set inside the Generator. Thats what my matcher should look like:

Re: mail errors and eclipse revisited

2003-01-29 Thread Christian Haul
On 29.Jan.2003 -- 12:52 AM, Geoff Howard wrote: I've deleted the old email, but I asked about the 60 or so mail related errors I've been getting in the eclipse task area. Carsten suggested that I needed mail.jar on my classpath in eclipse. I just checked and it was already there - in

Re: Accessing session variables in the sitemap.xmap

2003-01-30 Thread Christian Haul
On 30.Jan.2003 -- 02:56 PM, Heiko Milke wrote: Hello, I want my application to work like the following. map:match pattern=xsp/example.xsp map:generate src=xsp/example.xsp type=serverpages/ map:transform src={selected_stylesheet}/ map:serialize/ /map:match 1. the

Re: How can the result of a pipeline be a parameter for a transformation in another pipeline?

2003-01-31 Thread Christian Haul
On 31.Jan.2003 -- 04:07 PM, Cyril Vidal wrote: Hello, I would like to retrieve the language of the user's browser, so that I could call the I18n Trasnformer in the right way (by passing the locales's value equal to the browser's language). To retrieve the language set up in the browser,

Re: xsp session logicsheet

2003-02-05 Thread Christian Haul
On 05.Feb.2003 -- 11:00 AM, Cyril Vidal wrote: Thanks for you response. hum, I guess actions are still a little bit too complex for me, regarding my knowledge of Cocoon... Isn't it really possible to add merely values to the same session's attribute with the ESQL logicsheet? It sounds

Re: DOM object - String

2003-02-05 Thread Christian Haul
On 05.Feb.2003 -- 02:24 PM, Lionel Crine wrote: Is is possible to convert a DOM object to a String with the cocoon or avalon api ? Have a look at org.apache.cocoon.xml.dom.DOMUtil Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837

Re: xsp session logicsheet

2003-02-05 Thread Christian Haul
On 05.Feb.2003 -- 02:56 PM, Cyril Vidal wrote: Hello Christian, Thanks again for your help and your availibility. Of course, I meant Session logicsheet and not ESQL one...Sorry... I've tried to launch the code you've suggested: ?xml version=1.0? xsp:page

Re: xsp session logicsheet

2003-02-05 Thread Christian Haul
On 05.Feb.2003 -- 04:53 PM, Cyril Vidal wrote: I think I'm on the point of being successful with my business. But I still have one question, considering the following short code and especially the uncommented snippet: (serves to retrieve and display all the items of the current session)

Re: variable i not found in XSP!

2003-02-06 Thread Christian Haul
On 06.Feb.2003 -- 05:09 PM, Cyril Vidal wrote: Hi, Since yesterday, I'm still stuck on the following problem: I can't list the items contained in a session's attribute of type Vector: Always the same following error is thrown: Line 236, column 59: variable i not found in class

Re: xsp util and file contents

2003-02-12 Thread Christian Haul
On 11.Feb.2003 -- 09:13 PM, Tom Place wrote: Hi, I’m trying to insert xml into my xsp, this xml is for navigation purposes so ideally I would like to use one navigation file in many different xsp documents. I have looked at the mail archive to find out the details about this but I cant

Re: MySQL date conversion with modular database action

2003-02-17 Thread Christian Haul
On 15.Feb.2003 -- 01:44 AM, Andre Taube wrote: Any pointers on how to convert a date before it's inserted into MySQL database while using cocoon's Modular Database Action? I tried value name=start_date type=date mode name=attribute

Re: extending XMLForms for different kinds of models...opinions?

2003-02-17 Thread Christian Haul
On 14.Feb.2003 -- 02:07 PM, Josema Alonso wrote: snip/ In this how-to I explored new ways of storing the form model. This new way the XML model is stored in a file in the system with an empty structure. Then it is loaded into a JXPath Container and manipulated from there. The getFormModel()

Re: R: MySQL date conversion with modular database action

2003-02-17 Thread Christian Haul
On 17.Feb.2003 -- 03:31 PM, Marco Taiuti wrote: I have a DatabaseAction with the followed descriptor ?xml version=1.0? tabelle connectionline_db/connection table name=t_news keys key param=numprg dbcol=numprg type=int mode=manual/

Re: extending XMLForms for different kinds of models...opinions?

2003-02-17 Thread Christian Haul
Josema Alonso wrote: I wonder if it would be easier and cleaner to have different actions depending on the model (e.g. bean / dom) like you demonstrate on the wiki page or at least two different parameters for specifying the model. Automagic is fine but hiding the information whether it is a

Re: MySQL date conversion with modular database action

2003-02-18 Thread Christian Haul
Andre Taube wrote: Thanks, that's exactly what I need. However, my date is in MM/dd/ format, how could I pass a format string to the DateMetaInputModule? API says: Configuration options: child element input-module holds InputModule to obtain the string from, attribute format to input-module

Re: extending XMLForms for different kinds of models...opinions?

2003-02-18 Thread Christian Haul
Josema Alonso wrote: When I tried not to use Java, the hard part was not the CRUD one but the validation against the DB. Mixing both was a nightmare when not using Java. When using Java code and the helper class I only had to write very few lines and everything was working. Yes, that really is

Re: MySQL date conversion with modular database action

2003-02-18 Thread Christian Haul
Andre Taube wrote: snip/ Trying to set column pcm_contract.start_date from request-param using getAttribute method Setting column pcm_contract.start_date [0] 2/9/2003 This shows cleanly that you haven't requested the attribute mode here. Please check your table set! Chris. -- C h r i s t

<    1   2   3   4   5   >