Re: How to use xsp-request:get-parameter

2001-06-25 Thread Christian Haul
On 25.Jun.2001 -- 11:00 AM, Zeljko Rajic wrote: p Parameter 'param1' value: xsp-request:get-parameter as=string default=default Value xsp-request:nameparam1/xsp-request:name /xsp-request:get-parameter /p Looks OK I'm receiving the following error as it seems the

Re: I'm confused about XSP , variables and session

2001-07-02 Thread Christian Haul
On 29.Jun.2001 -- 12:21 PM, [EMAIL PROTECTED] wrote: For instance , I have a XSP logicsheet that declares: String person = request.getParameter(person); I then use this variable in a custom XSP tag library that is declared in the namespace of the XSP logicsheet. Is this possible because

Re: form-validator?

2001-07-03 Thread Christian Haul
On 02.Jul.2001 -- 05:31 PM, java guru wrote: The problem with regular expression in that example is that: for email address i just put anything and it works..shouldnt it be of format [EMAIL PROTECTED] ??? Yes, indeed. Unfortunately, I'm not able to reproduce your observation. I remember

Re: Query problems !

2001-07-04 Thread Christian Haul
On 03.Jul.2001 -- 02:16 PM, Gustavo Mejia wrote: Hi !! I am making a query passing it from a JSP file, my code is very simple but I got an error: java.lang.RuntimeException: Error executed prepared statement: ? at My code is the next: esql:query esql:parameter

Re: outputting XML tags

2001-07-06 Thread Christian Haul
On 05.Jul.2001 -- 03:13 PM, Vartika Bhandari wrote: Hi! I am using cocoon for an application wherein in certain circumstances I need to display a dynamically generated XML document as plain text i.e with all markup as is. However cocoon strips off tags and never displays

Re: esql problem

2001-07-06 Thread Christian Haul
On 06.Jul.2001 -- 02:30 PM, JEULIN Olivier wrote: Well, esql:get-int needs a column name, so try: select count(*) as thecount from... and use: esql:get-int column=thecount / That's not true. It takes either a label or a number. So esql:get-int column=1/ should work (and it's translated

Re: esql problem

2001-07-07 Thread Christian Haul
On 06.Jul.2001 -- 03:18 PM, JEULIN Olivier wrote: It seems you should put it inside xsp:logic like this xsp:logic rowNum = esql:get-int column=1/; /xsp:logic (if C2 is a bit like C1 ;) ) If you didn't want to assign to a variable, then you'd need to enclose the rowNum=... code with a

Re: AW: [C2] Redirects

2001-07-11 Thread Christian Haul
On 11.Jul.2001 -- 10:08 AM, Ulrich Mayring wrote: Carsten Ziegeler wrote: The right place for application flow and redirects is the sitemap in c2. So you can make redirects in the sitemap using the map:redirect-to element or you can write your custom action which can do a

Re: AW: [C2] Redirects

2001-07-11 Thread Christian Haul
On 11.Jul.2001 -- 05:06 PM, Anders Lindh wrote: One of the issues is technical in nature. Because of the SAX stream approach that Cocoon 2 uses, the XSP page is being serialized AS it is being parsed. What is happening is that each SAX event (startDocument, startElement, etc), is being

Re: C2 -- Actions and how do they work??

2001-07-12 Thread Christian Haul
On 12.Jul.2001 -- 11:14 AM, Sheshadri Mantha wrote: Hello All: I'm new to Cocoon2 and want to learn the steps involved in using actions instead of embedding java logic in xsp pages. I've read the documentation page on action and admit that I fail to understand the constructs behind the

Re: [c2] Selectors and Matchers vs components in sitemaps

2001-07-13 Thread Christian Haul
On 12.Jul.2001 -- 07:35 PM, HALLOWELL,KARL (HP-Cupertino,ex1) wrote: My apologies. This was meant to be a Cocoon 2 question. Karl Hallowell [EMAIL PROTECTED] From: HALLOWELL,KARL (HP-Cupertino,ex1) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:26 PM

Re: AW: forms in coocon2, is SchemoX dead ?

2001-07-17 Thread Christian Haul
On 16.Jul.2001 -- 09:28 PM, java guru wrote: I agree about the xform and xfdl..In future, i guess, these concepts would go beyond just form validation and handling.. To me it looks like xfdl is not actively maintained by W3C, since the document is rather old. For now, from this discussion,

Re: AW: forms in coocon2, is SchemoX dead ?

2001-07-17 Thread Christian Haul
On 17.Jul.2001 -- 10:07 AM, Berin Loritsch wrote: a) XForms expects XML encoded parameters. I'm not 100% sure on Which means that for the two standard submission types (url encoded and multipart), the XPath expression is used to reconstruct the XML document. So, do you think this is

Re: Classpath Problems With Actions

2001-07-17 Thread Christian Haul
On 17.Jul.2001 -- 04:08 PM, Marks local account wrote: So I have three questions: 1. What am I doing wrong? The web.xml looks good. Package problems? (You know, package foo.bar.xyz lives in foo/bar/xyz) 2. Is there a prescribed way for me to let cocoon compile the LoginAction.java file on

Re: Q on session validation example

2001-07-17 Thread Christian Haul
On 17.Jul.2001 -- 03:10 PM, HALLOWELL,KARL (HP-Cupertino,ex1) wrote: I have a question about Martin Man's session validation example (e.g., http://localhost/cocoon/protected/login). Namely, the session validator is called every time that a match (map:match that is) is done in the sitemap.

Re: Employee Database Sample

2001-07-18 Thread Christian Haul
On 18.Jul.2001 -- 06:46 PM, Madock Chiwenda wrote: I am trying to access employee sample bundledwith cocoon but I get the following error: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate():java.lang.RuntimeException: Could not get the datasource

Re: Using Actions in Sitemaps

2001-07-23 Thread Christian Haul
On 23.Jul.2001 -- 03:16 PM, Max Larsson wrote: Is your LoginAction 1) without any package, and 2) in the classpath? Anytime you alter your classpath in ANY servlet, the servlet engine needs to be restarted. It's a fact of life. It's no problem with the classpath. Cocoon loads the class

Re: XSLT Trouble

2001-08-02 Thread Christian Haul
On 02.Aug.2001 -- 03:49 PM, Kazi the P i R @ t {- wrote: Well :) ... I am finally smiling... The trouble has finally gone away.. and i'd like to thank you all for your suggestions adn pointers... especially Scott Boag, cause what he mentioned really made the difference in the end.

Re: ESQL - select * from any_table

2001-08-06 Thread Christian Haul
On 05.Aug.2001 -- 12:00 PM, Mauro Velasco wrote: Hi all, I'm using ESQL with (Tomcat 3.2.1, Cocoon 1.8.2, WinNT 4 sp6), and need select all rows from any table, but I noticed before need know the columns the be retrieved, exist a form to make this query. I'm usign Oracle 8.1.6, Sql

Re: Quotes in query

2001-08-06 Thread Christian Haul
On 06.Aug.2001 -- 10:23 AM, Sébastien Lefebvre wrote: Hi all, I have a form where I can type text. The form is submited with post method to a xsp page. This texte can of course have quotes in it. ex: I'd like this to work How to insert it in MySQL ? Do I have to write XSP logic in order

Re: esql get-colums NullPointerException

2001-08-06 Thread Christian Haul
On 06.Aug.2001 -- 05:24 PM, Arnaud Bienvenu wrote: When you use esql:get-columns and one of your column has a NULL value, you find yourself with a disgracefull NullPointerException. Here is a patch for Cocoon2 to have an empty tag instead : Applied. Please check. Chris. -- C h r i

Re: How to getConnection in Action ?

2001-08-07 Thread Christian Haul
On 07.Aug.2001 -- 03:42 PM, Ling Kok Choon wrote: Hi All, I try to use Action in the Sitemap to dinamicaly select stylesheet file base on the request *.xml file. so in the Action, i need to get a connection from the connection pool to connect to the database. But How to get the

Re: HTTP request parameter

2001-08-09 Thread Christian Haul
On 09.Aug.2001 -- 01:17 PM, [EMAIL PROTECTED] wrote: Hi, what is required to get the http request parameter to work? I have [...] xsp:page language=java xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2;

Re: How to access attribute in Java?

2001-08-09 Thread Christian Haul
On 09.Aug.2001 -- 02:57 PM, Martin Benda wrote: Is it possible to access the value of an attribute inside of xsp:logic to use it in the Java Code? For example xsl:template match=timer-util:verify-user xsp:logic String driver = xsp:contentxsl:value-of

Re: request taglib + query

2001-08-14 Thread Christian Haul
Anne Marie, as far as I can see, the resulting java source is OK. A comparison of the two fragments that reference the request parameter are identical which they should be as both return a String. On 14.Aug.2001 -- 11:22 AM, [EMAIL PROTECTED] wrote: Printing ID to greet the user:

Re: java.lang.NoSuchMethodError - StreamTarget.java:34

2001-08-15 Thread Christian Haul
On 15.Aug.2001 -- 01:22 AM, [EMAIL PROTECTED] wrote: Root Cause: java.lang.NoSuchMethodError at org.apache.log.output.io.StreamTarget.(StreamTarget.java:34) at org.apache.log.output.io.FileTarget.(FileTarget.java:40) There has been a version conflict with velocity's logkit. The old version

Re: esql database results and XSL

2001-08-16 Thread Christian Haul
On 16.Aug.2001 -- 11:15 AM, Brent L Johnson wrote: Is it possible to process XML that comes from database results? I'm not sure this would be possible or not - but here's an example... select Title from MyInfo order by Title; The resulting titles could be like: The Cocoon Mailing List

Re: Problem with cascading actions and parameters...

2001-08-17 Thread Christian Haul
Roman, please RTFM, it's all explained in there. Solution is [significant enclosing structures omitted!] map:parameter name=constraint-set value={1}/ !-- Actually, this is *before* evaluating the action since it is an extra parameter to it.

Re: xsp-formval how get results

2001-08-21 Thread Christian Haul
On 20.Aug.2001 -- 11:29 AM, cib wrote: Hi, my form's target goes to do-register2, and here is the sitemap. map:match pattern=do-register2 map:act type=form-validator map:parameter name=descriptor value=reg_desc.xml/ map:parameter name=validate-set value=registered/

Re: [C2b2] esql tags in xsl stylesheets

2001-08-25 Thread Christian Haul
On 24.Aug.2001 -- 05:04 PM, Arnaud Vandyck wrote: Response below... Date: Fri, 24 Aug 2001 16:22:09 +0200 From: Orgalist [EMAIL PROTECTED] I can't make it work, the esql tags are not interpreted i also use esql tags in file.xsp where it works if someone can help me thanks. (I know

Re: Action vs. Request

2001-09-17 Thread Christian Haul
On 17.Sep.2001 -- 04:29 PM, Tobias Luikard wrote: Hi, this isn't the problem. In the Action I try to set XMLString as seen. But when I try to read it in the XSP with the following statement it's empty (I get EGAL as result): xsp-request:get-parameter name=XMLString default=EGAL/

Re: Help with form validation

2001-09-17 Thread Christian Haul
On 17.Sep.2001 -- 03:47 PM, beje wrote: Hi, I have n dinamicaly generated (and identical) forms to fill-in; on submition I'd like to validate them by using just a descriptor file whitch contains just 1 form (since all are the same). Is there a way to achieve that ? Sure, just have the

Re: Help with form validation

2001-09-17 Thread Christian Haul
On 17.Sep.2001 -- 11:09 AM, Per Kreipke wrote: Sure, just have the same parameter names. You might even want to set your descriptor as default descriptor. Where would I start to learn about this? Are 'descriptors' a velocity template thing or a Cocoon2? Per Please see docs, section

Re: Help with form validation

2001-09-17 Thread Christian Haul
On 17.Sep.2001 -- 06:13 PM, beje wrote: From: Christian Haul [EMAIL PROTECTED] On 17.Sep.2001 -- 03:47 PM, beje wrote: Hi, I have n dinamicaly generated (and identical) forms to fill-in; on submition I'd like to validate them by using just a descriptor file whitch contains just 1

Re: programatically examine columns in a row

2001-09-17 Thread Christian Haul
On 17.Sep.2001 -- 06:43 PM, Chris Newland wrote: Hi All, I'm looking for a generic way to examine the columns in a row retrieved using esql: esql:results xsp:logic int cols = esql:get-column-count/; String colname; /xsp:logic esql:row-results

Re: DTMDOMException + HTML Tables

2001-09-17 Thread Christian Haul
On 17.Sep.2001 -- 09:05 PM, Aurelien wrote: Hi, Sorry, this is obviously a beginner's problem trying to fiddle with Xalan: I have this long list of xml nodes that I have to format into an HTML table. BTW, there *must* be some standard way to do this. However, I tried to implement a

Re: No method matching in inner class

2001-09-17 Thread Christian Haul
On 17.Sep.2001 -- 10:16 PM, cib wrote: Thanks to Luis Gois for correcting the first part. it now says: No method matching main() found in inner class org.apache.cocoon.www.pages.make1_xsp. make_xsl. (I really don't know why there is a space between make1_xsp. and make_xsl. Is it normal?)

Re: No method matching in inner class

2001-09-19 Thread Christian Haul
On 19.Sep.2001 -- 10:09 AM, cib wrote: Thanks for answering, unfortunately signature does not match sounds like a riddle to me. Sorry cib, I thought it was obvious after I pulled the lines together. You declare a method main(String[] args) and call main() without arguments which is a totally

Re: abstract class

2001-09-22 Thread Christian Haul
Cib, I'd really appreciate it if you'd care to read me responses and don't post the same question over and over. If you change your code the code as indicated it compiles OK. On 22.Sep.2001 -- 04:42 AM, cib wrote: ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java

Re: Actions in Sitemap

2001-10-01 Thread Christian Haul
On 01.Oct.2001 -- 04:17 PM, Henrik Hofmann wrote: Hi, I have a question to Actions. I’ve put an Action LogOnAction to the Sitemap. It works, but the problem is that he always performs the action. Wheter I append cocoon-action=logon or not. map:act type=logOn action=logOn What

Re: esql logicsheet get-column-name column=?

2001-11-19 Thread Christian Haul
On 07.Nov.2001 -- 07:56 AM, Roger I Martin PhD wrote: Apparently esql:get-column-name takes only column names and string representation of column indexes; no variables. The generated java code shows either although it looks like it should be feasible. Is there a way? Also I want to

Re: Look-and-feel approach with views

2001-11-27 Thread Christian Haul
On 26.Nov.2001 -- 06:20 PM, Alexander Smirnoff wrote: OK. Then how could I implement dynamically look-and-feel based on user credentials (customer-id, user_id) ? I see only one possible way: inserting action for each XSL transformation in each pipeline... That approach makes sitemap look even

Re: LF: passing parameters to resource

2001-11-28 Thread Christian Haul
On 27.Nov.2001 -- 03:41 PM, Alexander Smirnoff wrote: Thanks Cris, Again you saved me, man. Thanks. You're welcome :-) Approach with map:parameter name=target value=welcome/ generates code in wrong place, which cause compilation error of sitemap. So I guess it could be treated as a BUG.

Re: Redirect after Generation/Transformation

2001-11-30 Thread Christian Haul
On 29.Nov.2001 -- 06:02 PM, [EMAIL PROTECTED] wrote: Hello, I look for a possibility to redirect the processing of a resource in C2 after a generator- and a transformer-call to another resource, the obvious solutions would be map:redirect-to or map:read at the end of the resource. I think

Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-04 Thread Christian Haul
On 04.Dec.2001 -- 06:20 PM, Hubert NEOtyk Iwaniuk wrote: Hi David, Your previous question was a little unclear, but I'll try my best to help. Generally the way I handle logicsheets and XSP is as follows: 1) take an XML file (what you refer to in your message as my server page I

Re: Sitemap

2001-12-05 Thread Christian Haul
On 04.Dec.2001 -- 02:50 PM, Carlos wrote: I have the sitemap listed below and have the following questions: * Is it possible to refer to a single document and then refer to something more specific? For example; Is it valid to use: ?? something is missing ?? * Also, in the second

Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-05 Thread Christian Haul
On 05.Dec.2001 -- 10:30 AM, Hubert NEOtyk Iwaniuk wrote: Hello Chris, On Wed, Dec 05, 2001 at 12:24:51AM +0100, Christian Haul wrote: Wait a minute. stylesheet != taglib taglib: used when creating .java from XSP. taglibs are aka logicsheets. stylesheet: used when styling XML

Re: [c2] q: howto use ESQL inside own logicsheets?

2001-12-05 Thread Christian Haul
On 05.Dec.2001 -- 02:49 PM, Hubert NEOtyk Iwaniuk wrote: On Wed, Dec 05, 2001 at 01:34:52PM +0100, Christian Haul wrote: On 05.Dec.2001 -- 10:30 AM, Hubert NEOtyk Iwaniuk wrote: This wasn't clear from your postings. Please attach your cocoon.xconf. To the contrary, you explicitly apply

Re: cannot install Cocoon 2 in Redhat linux

2001-12-19 Thread Christian Haul
On 19.Dec.2001 -- 09:54 PM, Jennifer Ho wrote: dear sir, I have downloaded cocoon 2 and try to install in Redhat linux 7 but unsuccessful. It causes by segmentation fault when compiling using ant when i run the script build.sh. There exists a known problem with java and glibc2.2. Search

Re: Cocoon ESQL stored procedures

2001-12-19 Thread Christian Haul
On 19.Dec.2001 -- 01:46 PM, Durrant, Peter wrote: Can ESQL handle calls to stored procedures? AFAIK CallableStatements are currently not supported by ESQL. We have a java application that calls an Oracle stored procedure called get_titles with one parameter (104) in the following way:

Re: from session-attribute to xsl-variable

2002-01-14 Thread Christian Haul
On 13.Jan.2002 -- 09:11 PM, Uwe Stelzer wrote: Hello Cocoon fellows, How can I only copy the content of a session attribute to a xsl variable in my xsl-logicsheet? I have tried this here, but I only get an empty string in $usertype: xsl:variable name=usertypesession:get-attribute

Re: A couple of ESQL Q's

2002-01-22 Thread Christian Haul
On 21.Jan.2002 -- 06:45 PM, NUGENT ROBERT (APP3RJN) wrote: First, I am trying retrieve an XML fragment stored as a CLOB in Oracle 8i. No problem using esql:get-ascii to retrieve the contents of the CLOB. Also no problem using esql:get-xml to retrieve an XML fragment stored as character data

Re: cocoon userdocs/xsp/esql.html

2002-02-06 Thread Christian Haul
On 05.Feb.2002 -- 11:34 PM, Conrad Wood wrote: you refer to a database connection 'ConnectionName' in the Example and a note 'ConnectionName' is defined is cocoon.xconf. I spent the last day trying to figure out how to add this to cocoon.xconf. Can you add a link to how to do this on the

Re: Escaping in xsp:expr (stupid question)

2002-02-12 Thread Christian Haul
On 12.Feb.2002 -- 04:44 PM, Andre Thenot wrote: Hi, I'd like to know if there is a way to have get data from a helper class into a logicsheet without that data getting escaped. I looked through xsp.xsl but still haven't been enlightened. Andre, if I understand correctly you want to

Re: Cocoon, XForms, ExFormula,, Struts, etc

2002-02-13 Thread Christian Haul
On 12.Feb.2002 -- 11:48 PM, Ivanov, Ivelin wrote: Does Cocoon 2 have a mechanism for achieving automatic Form population and validation, similar to Struts ? I don't know Struts, so I can't compare the two. Anyway: Validation, yes. There's a FormValidatorAction that should be sufficient for

Re: Setting attributes of the esql tags dynamically

2002-02-13 Thread Christian Haul
On 13.Feb.2002 -- 03:43 PM, hugo burm wrote: How can I set the column attribute of the tags in the esql taglib dynamically? xsp:attribute generates an error. esql:results esql:row-results xsp:logic for (ic=1; ic lt;= cnt; ic++) {

Re: ESQL doc.

2002-02-15 Thread Christian Haul
On 14.Feb.2002 -- 03:36 PM, Olivier Rossel wrote: I read the archives of the mailing-list about ESQL and nested queries. I read an interesting thing about ancestor in the declaration of inner requests. But I can find no documentation at all, about that point. Anyone has a link? Any docs

Re: I may be confused - can I put Saxon into cocoon, or run Xerces at the command line?

2002-02-17 Thread Christian Haul
On 17.Feb.2002 -- 06:21 AM, Stephen Clarke wrote: So I've been thinking, the thing to do is to figure out how to run xerces at the command line in order to test my code that way and check error messages. This is what I do to run xalan (the XSLT processor) from command line (in a script):

Re: Calling MS SQL stored procedure

2002-02-20 Thread Christian Haul
On 20.Feb.2002 -- 10:45 AM, Miller, Grant wrote: Hi, I'm having a problem calling an ms sql server stored procedure with the sql transformer (using cocoon 2.0.1 and tomcat 4). The code is: sql:execute-query sql:query isstoredprocedure=true name=testformike begin

Re: howto make use of default database add, delete, update action for mutilple table at a time

2002-02-23 Thread Christian Haul
On 22.Feb.2002 -- 11:13 PM, Pascal Davoust wrote: I read in a post a few days ago (or was it in the archive?) that there were some serious limitations with these actions, and that some work is currently done to overcome those (something is already available in the scratchpad to have a look, I

Re: get-column-count

2002-02-26 Thread Christian Haul
On 25.Feb.2002 -- 10:58 AM, Joseph Rajkumar wrote: Could some one please confirm where the esql:get-column-count works as it says it should? It should return the number of columns in a result set. I could get esql:get-column-label(number) to work, where number is the index of

Re: Passing a '+' in a request parameter?

2002-02-27 Thread Christian Haul
On 27.Feb.2002 -- 08:36 AM, Derek Hohls wrote: Based on what you said below - I am now not completely sure what *is* causing the problem, but I can see there is one... Derek, could you please check for me in core.log how your request parameters are received by cocoon. It should look like

Re: Passing a '+' in a request parameter?

2002-02-28 Thread Christian Haul
On 28.Feb.2002 -- 12:38 PM, Derek Hohls wrote: I have now changed the key on the table to use an integer, which allows me to avoid these problems. That's good. But actually, I would like to know whether there *is* an issue with the actions that needs to be fixed. So if you could spare the time

Re: using MSQL's LAST_INSERT_ID() with DatabaseAddAction

2002-03-01 Thread Christian Haul
On 01.Mar.2002 -- 03:34 PM, Giuseppe Di Pierri wrote: Hi there, I have a problem using the DatabaseAddAction in MySQL. I would do two table insertions, one after an other like the following example: The value is written to a request attribute (table.column) that you can use if you were

Re: Urgent: Execution of pipeline at startup

2002-03-02 Thread Christian Haul
On 01.Mar.2002 -- 11:04 PM, Chitharanjan Das wrote: Hello, I had raised this issue earlier... Please confirm if this is possible at all. I need to cache some data structures and some schema elements. Is there a way to execute a pipeline or any other possibilities to cache the

Re: [HELP] Cocoon 2.0 - Oracle DB connection problems...

2002-03-02 Thread Christian Haul
On 01.Mar.2002 -- 07:37 PM, CHERVIRALA Srinivas / FTRD / US wrote: Hi. I am facing problem in accessing the Oracle DB. My Environment: - Win NT 4.0

Re: [C2] esql:group, esql:member

2002-03-05 Thread Christian Haul
On 05.Mar.2002 -- 09:40 PM, Christian Joelly wrote: Hello! has anybody sucessfully used esql:group/esql:member in C2? i looked at the esql.xsl and the group and member templates are not in that taglib. maybe they are not implemented? Perhaps you looked at the wrong version? It should be

Re: [HELP] Cocoon 2.0 - Oracle DB connection problems...

2002-03-06 Thread Christian Haul
Srinivas, On 05.Mar.2002 -- 09:50 PM, CHERVIRALA Srinivas / FTRD / US wrote: I tried with Tomcat 4.01 with out any success. My error.log file contains the following: FATAL_E (2002-03-05) 21:10.56:416 [core] (Unknown-URI) Unknown-thread/LogKitLogger: Excalibur could not create any

Re: howto validate user input field via database data?

2002-03-07 Thread Christian Haul
On 07.Mar.2002 -- 03:35 PM, marco wrote: I have a program to let user add records to a table of country and the user has to input a new code for a new country. I have to check the existenance of the new user input code in the database table, before saving inserting the new record. What can

Re: [C2.0.1] esql:group/eqsl:member

2002-03-08 Thread Christian Haul
On 07.Mar.2002 -- 09:08 AM, Christian Joelly wrote: Hi! i have a *strange* problem with esql:group/esql:member: when i add esql:group/esql:member to my xsp page then the loop fetching the results from the resultset changes to an endless loop, till i get an java.lang.OutOfMemoryError.

Re: XML Stored in a Database

2002-03-15 Thread Christian Haul
On 15.Mar.2002 -- 06:51 PM, Alan Tibbetts wrote: Hi I've trawled the archives and samples, but can't see the answer to this one. Alan, you haven't done a good job. This is a FAQ. Please look at the util logicsheet. It allows you to include anything as XML. Chris. -- C h r i s t i

Re: logicsheets driving me insane

2002-03-21 Thread Christian Haul
On 21.Mar.2002 -- 08:26 AM, Peter Wieland wrote: * Even when using enclosing braces around the xsp:logic section, there's always the risk that the page author (or another logicsheet!) has previously defined variables called myConnection, previousConnection or mySession. This will result in

Re: sessionstate matcher usage: What's wrong?

2002-03-21 Thread Christian Haul
On 21.Mar.2002 -- 12:07 PM, KOZLOV Roman wrote: processed, so that writeDOMsession is called always. Could you please point to errors? map:match pattern=get_lub map:match type=sessionstate pattern=** map:parameter name=attribute-name value=designations/

Re: sessionstate matcher usage: What's wrong?

2002-03-21 Thread Christian Haul
On 21.Mar.2002 -- 05:18 PM, KOZLOV Roman wrote: Hello Christian, Thank you very much for response. I've not found any designations substring in core.log. For the moment I've divided the match on two matches - one for read and I /think/ core.log dumps all about the known state for a request

Re: ESQL - mixed case in column names spits attribute lowercase -col umn-name not found on SELECT

2002-03-21 Thread Christian Haul
On 21.Mar.2002 -- 11:25 AM, von Schwerdtner, Thomas (GXS, FPI) wrote: Could this be a namespace problem if I'm using relatively generic tags of my own design (such as table and column)? doubt it. is a SQLException, so the correct code is executed. to be sure, verify with the generated java

Re: Simple ESQL question: specifying dynamic column name in esql:get -string column=foo/

2002-03-21 Thread Christian Haul
On 21.Mar.2002 -- 02:19 PM, von Schwerdtner, Thomas (GXS, FPI) wrote: Hey folks, I've been digging through the archives and docs and I cant find an answer to this (at least not one I can decipher). Please have a look my reply to dated 2002-03-21 Re: logicsheets driving me insane I've

Re: Where is META tag coming from?

2002-03-22 Thread Christian Haul
On 22.Mar.2002 -- 03:19 PM, Derek Hohls wrote: I've tried the (''+'head') without success... sorry. I've also tried including the function in a separate file, but with the same lack of result - at the end, I think, because, its also processed by Cocoon - and, even if this did work, its

Re: Where is META tag coming from?

2002-03-22 Thread Christian Haul
On 22.Mar.2002 -- 10:26 AM, Derek Hohls wrote: No big deal? But, whatever is doing this, is doing the same thing to a javascript snippet that has: write('html'); write('head'); On another note: since XML doesn't know about JS strings, what happens here is

Re: Session attribute - database

2002-04-02 Thread Christian Haul
On 28.Mar.2002 -- 10:22 AM, Alexander Kruth wrote: Hi! Is it possible to write a session-attribute to a database? IMHO no, not using the database actions from main trunk. Database actions in scratchpad support arbitrary sources. Chris. -- C h r i s t i a n H a u l [EMAIL

Re: xsp and esql

2002-04-04 Thread Christian Haul
On 04.Apr.2002 -- 11:33 AM, Bert Van Kets wrote: I've got the name of a column in a String variable and would like to use the value contained in that column in my output. How can I request that value? I need to nest an xsp:expr tag inside an esql:get-string tag. Is this possible? No it

Re: xsql

2002-04-04 Thread Christian Haul
On 04.Apr.2002 -- 08:25 PM, sushil Bhattarai wrote: Hi All, Does Cocoon2 support XSQL? I'm trying to find taglib for XSQL and have no idea how to go about it. How can I use XSQL in Cocoon? Any suggestion? Cocoon has four different packages that deal with relational database access. 1) ESQL

Re: Putting the esql:get-ascii inside CDATA block

2002-04-04 Thread Christian Haul
On 04.Apr.2002 -- 12:06 PM, Steven Sedlmeyer wrote: I'm trying to place the results of an esql:get-ascii column=foo/ tag into a cdata block. I've been able to get close, with the ending up in the text node as lt; and gt; but I can't get them inserted as an actual CDATA block. Is there

Re: databaseaddaction...help me....

2002-04-05 Thread Christian Haul
On 05.Apr.2002 -- 09:26 AM, Rolfe Jenny wrote: HttpProcessor[8080][3]/AbstractDatabaseAction: Setting column 2 named key:page:pageid with value null From this we can conclude that the value is not found. OK, the issue is a bit complicated here. And you coudn't have known unless inspecting the

Re: Logicsheet Woes with Esql and XSP Logic

2002-04-06 Thread Christian Haul
On 05.Apr.2002 -- 10:59 PM, Sharat Koya wrote: Hi help on this problem would be much appreciated since I have been stuck with it for a few days of coding. I have a logicsheet that runs mysql statments and returns values from the database. In my logic (in the file using the logic sheet) I

Re: C2.0.1 - esql stored proc problem

2002-04-06 Thread Christian Haul
On 05.Apr.2002 -- 05:57 PM, Argyn Kuketayev wrote: I have two nested queries and one nested stored procedure call. I couldn't get resluts from the stored procedure. Cocoon says: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.ClassCastException:

Re: Logicsheet Woes with Esql and XSP Logic

2002-04-06 Thread Christian Haul
On 06.Apr.2002 -- 07:04 PM, Sharat Koya wrote: - Original Message - From: Christian Haul [EMAIL PROTECTED] On 05.Apr.2002 -- 10:59 PM, Sharat Koya wrote: mercurySun = eclipse-data:get-planet-data data=sundist name=Mercury/; -- mercurySun

Re: Putting the esql:get-ascii inside CDATA block

2002-04-06 Thread Christian Haul
On 05.Apr.2002 -- 11:22 AM, Steven Sedlmeyer wrote: I'm pulling out a CLOB that may or may not have embeded HTML which may or may not be XHTML... I then need to pass it on through a couple of stylesheets to format the results for a browser. I'm trying to put the text into a CDATA block

Re: C2.0.1 - esql stored proc problem

2002-04-08 Thread Christian Haul
On 08.Apr.2002 -- 10:39 AM, Argyn Kuketayev wrote: For some reason ESQL does not obtain a CallableStatement. The java and the xsp would help to debug that. The source is way too long, sorry. Then I cannot be of any more help. Consider sending it in private mail. Just one remark: I

Re: esql and db-actions error handling

2002-04-12 Thread Christian Haul
On 12.Apr.2002 -- 09:18 AM, Jerzy Kut wrote: Hi cocooners! I want to handle errors coming from esql selects and actions operate on DB. ESQL - I try to do: esql:connection esql:poolmypool/esql:pool esql:execute-query esql:query select EMPNO from EMP

Re: esql and db-actions error handling

2002-04-12 Thread Christian Haul
On 12.Apr.2002 -- 10:12 AM, Jerzy Kut wrote: If I understand Your explanation it is correct construct that should provide handling db errors. So how to handle this? You're right. Sometimes I forget all the differences between the original database actions and those in scratchpad With the

Re: ESQL Oracle StoredProcedues

2002-04-12 Thread Christian Haul
On 12.Apr.2002 -- 02:00 AM, Michael Raffenberg wrote: Hi, I am using C2.0.1 with JDK1.3.1 and TOmcat 4.0.3 I have problems with calling oracle stored procedures from ESQL. I have this simple Code: esql:execute-query esql:call {call sp_proc(esql:parameter

Re: ESQL Oracle StoredProcedues

2002-04-15 Thread Christian Haul
On 13.Apr.2002 -- 02:25 PM, Michael Raffenberg wrote: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling Merci_Dics_xsp: Line 470, column -1: inconvertible types Line 0, column 0: 1 errorHere is the code:

Re: ESQL Oracle StoredProcedues

2002-04-15 Thread Christian Haul
On 15.Apr.2002 -- 02:17 PM, Michael Raffenberg wrote: OK, once again. Here is actual code: esql:execute-query esql:call{call cocoon_proc(esql:parameter direction=inout type=String'123'/esql:parameter)} /esql:call esql:call-results esql:results

Re: form-validation

2002-04-16 Thread Christian Haul
On 16.Apr.2002 -- 10:24 AM, Niket Anand wrote: I want to return map in act() method as Map siteparams=new HashMap(); siteparams(validate, true); return siteparams; How can I use variable validate in sitemap such that If it is true then redirect to resource1 else redirect to resource2.

Re: Splitting the request URL

2002-04-16 Thread Christian Haul
On 16.Apr.2002 -- 12:12 AM, Jason Foster wrote: What I would like to do is include a set of navigation links based on the URL path, in this case {1}. Given a request like website/topics/academic/ publications.html, the HTML source for the navigation links should be: a

Re: Actions: FormValidator and dbAdd

2002-04-16 Thread Christian Haul
On 16.Apr.2002 -- 12:43 AM, Matthieu Sozeau wrote: map:action-sets map:action-set name=guestbook-process map:act type=form action=Add-guestbook-entry map:parameter name=validate-set value=add/ map:act type=mydbAdd/ /map:act /map:action-set

Re: esql based logicsheet get-row-count

2002-04-17 Thread Christian Haul
On 17.Apr.2002 -- 09:10 AM, Jerzy Kut wrote: Hi cocooners! I know that esql:get-row-count is unavailable yet. But I need to get this information from my DB. I try: batch:element-countdbman:employees-count//batch:element-count batch.xsl xsl:template match=batch:navigator xsl:param

Re: esql based logicsheet get-row-count

2002-04-19 Thread Christian Haul
On 18.Apr.2002 -- 02:37 PM, Jerzy Kut wrote: That was trouble with xslt processing indeed :)) ! But I have impression You keep in mind another resolve Christian ??? With JAVA BEANS. That's just one possibility to handle parameters. Have a class that takes parameters one-by-one through a setXYZ

Re: esql:get-date doesnt work with a column type datetime

2002-04-22 Thread Christian Haul
On 22.Apr.2002 -- 02:14 PM, LEBRETON Philippe wrote: In my datase i have a column with datetime type and when i used esql:get-date i have a exeption. Does esql-get-date work with a datetime type or only with a date type? i want to use the format attribute of esql:get-date, with my datetime

Re: sendmail xsl problem

2002-04-23 Thread Christian Haul
On 17.Apr.2002 -- 10:38 AM, Perry Molendijk wrote: Hello, When I run the sendmail logicsheet I get a problem with the transformation of sendmail.xsl. Somewhere in the process the values of sendmail:subject, sendmail:body and sendmail:smtphost are not added to the generated java code.

  1   2   3   4   5   >