Re: MySQL date conversion with modular database action

2003-02-19 Thread Christian Haul
Andre Taube wrote: It still does not work. table name=pcm_contract others-mode=attribute/ = mode name=datemeta type=attrib === This does not match! Chris.

Re: mod-db postgresql and autoincrement

2003-02-21 Thread Christian Haul
On 21.Feb.2003 -- 02:53 PM, Am?lie Cordier wrote: Hello everybody I'm trying to run mod-db example (the one with users and groups) using PostgreSQL. Currently, everything work perfectly except the autoincrement attribute. The error I have is this one :

Re: multi-part forms

2003-02-21 Thread Christian Haul
On 20.Feb.2003 -- 04:58 PM, David Kavanagh wrote: I'm looking over documentation on cocoon and can't find anything that deals with handling multi-part forms. Specificly, I'd like to be able to upload an XLS file, use POI to convert to XML, then mess with it a bit. So, as far as I can tell,

Re: How to set an ESQL value into a variable?

2003-02-26 Thread Christian Haul
On 26.Feb.2003 -- 10:10 AM, [EMAIL PROTECTED] wrote: Hi, I make a connection (using ESQL) and get a value esql:get-string column=MYVAR/ . How can I get this value on the page to build another query like : Select * From mytable where ID = MYVAR I tried with xsp:attribute

Re: Passing format to DateInputModule

2003-02-28 Thread Christian Haul
On 27.Feb.2003 -- 07:01 PM, Alex Romayev wrote: Hi, It looks like DateInputModule has changed and doesn't accept format like it used to. Here is what I used to be able to do in cocoon.xconf: component-instance class=org.apache.cocoon.components.modules.input.DateInputModule

Re: [modules] url path of pipeline

2003-03-02 Thread Christian Haul
Jakob Praher wrote: hi all, definition: urlpath scheme://host:port:/urlpath in my cocoon-apps, it often turns out that I would like to know the UrlPath, that the current pipeline, that is handling the request has. You are looking for request.getServletPath(), thus {request:servletPath} Is

Re: [modules] url path of pipeline

2003-03-02 Thread Christian Haul
Jakob Praher wrote: You are looking for request.getServletPath(), thus {request:servletPath} not really. since servletPath for me returns the whole request, that comes in, not the pipeline, that processes the request. for instance a sitemap declares the pipeline listed below, the sitemap is

Re: Newbie Use of Request Params with DB Action

2003-03-03 Thread Christian Haul
Samuel Bruce wrote: Hello, I'm using a version of cocoon that I built from CVS back in October of 2002, running with tomcat 4.1.12 on WIN XP. I have a pipeline that generates an HTML form and passes parameters to a mod-db action which inserts DB records successfully. Can any of those parameters

Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Christian Haul
On 03.Mar.2003 -- 06:43 PM, Samuel Bruce wrote: Thanks for responding and sorry for the ambiguity of my post. Your reply was helpful. The parameters that I am referring to are request parameters sent from a post in an HTML form to a pipeline in my sitemap. That pipeline has a mod-db

Re: Newbie Use of Request Params with DB Action

2003-03-04 Thread Christian Haul
On 04.Mar.2003 -- 06:26 AM, Samuel Bruce wrote: I don't know what I did the first time, but whatever I did wrong I must not have had enough patience to look at it closer. The request parameters ARE displayed with the request generator after the db action. Thank you again for your help! Good

Re: Datasource from pool

2003-03-04 Thread Christian Haul
On 04.Mar.2003 -- 06:10 PM, arturl wrote: Hello, My cocoon app is hanging on mysql database access. I've got following messages in core.log: DEBUG (2003-03-04) 18:01.38:704 [core.datasources.foo] (/foo.html) Thread-268/ResourceLimitingPool: Blocking until a Poolable is available.

Re: Generating dynamic attributes in xsp

2003-03-04 Thread Christian Haul
Amelie Cordier wrote: Hi again. To sum up, I'm trying to use request parameters in a logicsheet that I've made on my own. According to Marco's suggestions (thanks a lot Marco!), I've tried this : In the .xsp : mytag:year yearxsp-request:get-parameter name=yearparam//year /mytag:year In the

Re: Datasource from pool

2003-03-05 Thread Christian Haul
On 05.Mar.2003 -- 10:33 AM, arturl wrote: On 04.Mar.2003 -- 06:10 PM, arturl wrote: Hello, My cocoon app is hanging on mysql database access. I've got following messages in core.log: DEBUG (2003-03-04) 18:01.38:704 [core.datasources.foo] (/foo.html)

Re: Generating dynamic attributes in xsp

2003-03-06 Thread Christian Haul
On 05.Mar.2003 -- 01:14 AM, Amelie Cordier wrote: Try to use get-parameter instead of get-string-parameter. That should return the node as well. But you need to insert the variable with copy-of, not value-of and in a place where it can safely expand to a xsp:expr/. Thanks, it works

Re: Error using DatabaseUpdateAction

2003-03-06 Thread Christian Haul
On 06.Mar.2003 -- 11:43 AM, Derek Hohls wrote: I need help resolving the following error, which I get when trying to use the DatabaseUpdateAction to update the database. Note that I have successfully used the DatabaseAddAction from the same form to post records, so I assume it cannot be

Re: Error using DatabaseUpdateAction

2003-03-06 Thread Christian Haul
On 06.Mar.2003 -- 12:58 PM, Derek Hohls wrote: Chris Thanks for the reponse. In anwer to your questions; 1. I am not sure what SQL _is_ generated - I assume the DatabaseUpdateAction is supposed to create this but I do not where and how to find what it has done. (the error log segment

Re: Error using DatabaseUpdateAction

2003-03-06 Thread Christian Haul
On 06.Mar.2003 -- 01:25 PM, Derek Hohls wrote: OK - not such good news for me... My development and production machine both run _binary_ installtions of 2.0.3 - do you think I need to upgrade and, if so, are there any sigiifcant implications (Id hate for all my existing apps to stop

Re: Datasource from pool

2003-03-06 Thread Christian Haul
On 05.Mar.2003 -- 12:11 PM, arturl wrote: ESQL *should* be safe. Look at the logs (set log level to debug!) and try to find lines indicating that the connection is returned to the pool. Generally all connections are returned. But increasing number of accessing the pool (by multiplying

Re: how to generate random numbers or strings?

2003-03-07 Thread Christian Haul
On 07.Mar.2003 -- 10:04 AM, Guenther Schmidt wrote: Hi all, I need to generate random numbers or a random string sequence for use as primary keys in a database app. How do I generate them within cocoon? Use your favourite java pseudo random number generator. In case you need it from

Re: xsp:attribute for xsp-request:get-parameter

2003-03-07 Thread Christian Haul
On 07.Mar.2003 -- 02:41 PM, [EMAIL PROTECTED] wrote: I tried your version with : xsp-request:get-parameter xsp-request:param name=nameparanamexsp:exprmycount/xsp:expr/xsp-request:param /xsp-request:get-parameter But I still get a java.lang.NullPointerException error Look at the

Re: Actions and mutli-user environment

2003-03-07 Thread Christian Haul
On 08.Mar.2003 -- 02:19 PM, Mark H wrote: Can anybody tell me how actions work in a multi-user environment. Is an action instance shared across multiple requests like a servlet? and hence member fields should be avoided in favour of local fields created in the act method or use of session

Re: xsp:attribute for xsp-request:get-parameter

2003-03-07 Thread Christian Haul
On 07.Mar.2003 -- 03:07 PM, [EMAIL PROTECTED] wrote: Well... I see the error (code bellow), I have (XSPRequestHelper.getParameter(objectModel, null, null,null, null)) So, that's why I get the error java.lang.NullPointerException but that doesn't help me much! I still haven't found any

Re: Problem with form validation (and spelling, yes)

2003-03-08 Thread Christian Haul
Guenther Schmidt wrote: Hi all, I've followed the wiki.cocoondev.org guidlines for form validation. I just can't get it to work. (Below is the excerpt from the sub-sitemap) Could you please post your complete pipeline as the fragment below is syntactically incorrect as is. If it is a complete

Re: Multiple ancestors

2003-03-10 Thread Christian Haul
On 10.Mar.2003 -- 10:36 AM, [EMAIL PROTECTED] wrote: Is it possible to have four ancestor like bellow? Because here I get errors for each esql:get-string esql:execute-query esql:query Select * From Process_Actions Where (pa_process = xsp-request:get-parameter name=MyID/)

Re: Multiple ancestors

2003-03-10 Thread Christian Haul
On 10.Mar.2003 -- 10:46 AM, [EMAIL PROTECTED] wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 10:43 AM To: [EMAIL PROTECTED] Subject: Re: Multiple ancestors On 10.Mar.2003 -- 10:36 AM, [EMAIL PROTECTED] wrote: Is it possible to have four

Re: Multiple ancestors

2003-03-10 Thread Christian Haul
On 10.Mar.2003 -- 11:20 AM, [EMAIL PROTECTED] wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 11:12 AM To: [EMAIL PROTECTED] Subject: Re: Multiple ancestors On 10.Mar.2003 -- 10:46 AM, [EMAIL PROTECTED] wrote: From: Christian Haul [mailto

Re: AW: esql nested queries

2003-03-10 Thread Christian Haul
Scherler wrote: leo leonid wrote: (#10; or #xA; are encoded CRs, AFAIK). So I'd recommend you strip you DB column from these CRs and change the data type for this column to INT) Can you do that with normalize-space()? esql:get-int column=normalize-space(ap_id)/ On Montag, März 10, 2003, at

Re: problems with images

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote: Niclas, Have tried changing the image to another, and it doesn't show anymore. When I revert it back to the backdrop image, it starts to work again??? Probably browser cache. I believe Charle's answer bears the key: The matches for your

Re: object in a transformer

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote: I have a pipeline in which there is my custom transformer. In this transformer I have a method which access to an XMLDB and get a result object. I want my transformer to get the object (in a session) and get it to an xsp page. Is it

Re: problems with images

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 01:46 PM, Richard Cunliffe wrote: Could someone tell me all the code that they have written in all relevant files to make images display. Have a look at the database samples -- there's one for the modular database actions that does image uploads to the database. In addition,

Re: object in a transformer

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 02:46 PM, Lionel Crine wrote: At 14:32 11/03/2003 +0100, you wrote: On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote: I have a pipeline in which there is my custom transformer. In this transformer I have a method which access to an XMLDB and get a result object. I want

Re: object in a transformer

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 04:40 PM, Lionel Crine wrote: By the way, I have few more question 1/Can I put anything in the session ? Yes. Shouldn't be too big, though, unless you have enough memory. 2/In the xsp page, haow can I get attribute from the DOM object in the session ? Like that :

Re: object in a transformer

2003-03-11 Thread Christian Haul
On 11.Mar.2003 -- 05:15 PM, Lionel Crine wrote: Yes. Shouldn't be too big, though, unless you have enough memory. 2/In the xsp page, haow can I get attribute from the DOM object in the session ? Like that : xsp-session:get-attribute name=the_object_in_the DOM/ Retrieve the object and

Re: Input/Output Modules without key-prefix

2003-03-12 Thread Christian Haul
On 12.Mar.2003 -- 02:45 PM, Markus Wolf wrote: Hi, I have a problem with configuring cocoon modules (input and output) to use no key-prefixes. I've tried to set an empty key-prefix / line to the needed output module and get a ConfigurationException as result.

Re: Input/Output Modules without key-prefix

2003-03-12 Thread Christian Haul
On 12.Mar.2003 -- 03:21 PM, Markus Wolf wrote: I'm trying to use the request attribute output module without the prefix org.apache.cocoon.acting.AbstractDatabaseAction:. As I read in the ApiDocs there is a setup option key-prefix which could be set. I've found a likewise configuration value in

Re: nested queries with esql

2003-03-12 Thread Christian Haul
On 12.Mar.2003 -- 04:23 PM, Scherler, Thorsten wrote: select * from ap_tab where ap_id = esql:parameter type=intesql:get-int column=id ancestor=1//esql:parameter Status = not working! I don't receive any error messages. It is just working without any result (besides CPU-usage 100%). I tried

Re: nested queries with esql

2003-03-12 Thread Christian Haul
On 12.Mar.2003 -- 04:54 PM, Scherler, Thorsten wrote: Von: Christian Haul [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 16:51 An: [EMAIL PROTECTED] Betreff: Re: nested queries with esql On 12.Mar.2003 -- 04:23 PM, Scherler, Thorsten wrote: select * from ap_tab where

Re: sql result tags = column names minus case / any way to get case sensitive tags?

2003-03-13 Thread Christian Haul
On 13.Mar.2003 -- 10:35 AM, Guenther Schmidt wrote: Hi all, is there a possibility to retrieve case sensitive column names, i.e. result tags. My select * from rentObjects where ... returns all column names (result tags) case insensitive. Is there a way to retrieve

Re: Modular Database Actions: Urgently seeking documentation

2003-03-14 Thread Christian Haul
On 13.Mar.2003 -- 07:48 PM, Richard In Public wrote: Hi I've been struggling for some time now to understand how to use modular database actions. I have not been able to find any directly helpful documentation. Does anyone have a simple example using an XMLForm to insert a row with a

Re: ???ESQL update table???

2003-03-14 Thread Christian Haul
On 14.Mar.2003 -- 04:20 PM, [EMAIL PROTECTED] wrote: Hi, This is a part of a query. My problem is that when I make a SELECT right after an INSERT I don't get the last updated query : snip/ What I mean is that in the last execute-query the value esql:get-int column=at_order/ returns a value,

Re: Modular Database Actions: Urgently seeking documentation

2003-03-19 Thread Christian Haul
On 18.Mar.2003 -- 03:15 PM, Richard In Public wrote: Hi Chris Firstly, thanks for your response. I have been mulling over this and revisiting the docs, but I have not managed to get things working. I suspect that my problem lies in chanelling the request parameters passed by the form

Re: ???ESQL update table???

2003-03-19 Thread Christian Haul
On 17.Mar.2003 -- 09:48 AM, Delis, Christopher E. wrote: on a slightly different note, is there place-holder functionality in esql stylesheet language? e.g., insert into atable (field1, field2) values (?, ?) select * from atable where field1 = ? limit ? Yes, see esql:parameter/ it is

Re: [xsp:request] : get a checkbox value

2003-03-27 Thread Christian Haul
On 27.Mar.2003 -- 03:11 PM, [EMAIL PROTECTED] wrote: Hi, I have a form with a checkbox and a textbox. I submit the form, and from the page I use xsp-request:get-parameter name=MyTextval/ xsp-request:get-parameter name=MyCheckval/ The value of the textbox is ok, but the checkbox's value

Re: esql not working at all, no connection ever created!

2003-04-01 Thread Christian Haul
On 01.Apr.2003 -- 01:48 PM, Christopher Painter-Wakefield wrote: Is this the whole XSP program? If so, the problem is that you don't have the required single non-xsp child node of xsp:page. E.g., you have: xsp:page ... esql:connection ... /esql:connection

Re: include other xsp

2003-04-02 Thread Christian Haul
On 02.Apr.2003 -- 04:07 PM, Magne Skjeret wrote: Hi I have just started to use cocoon for my web applications, and going from jsp to xsp, there is one thing I really is missing. In jsp it was possible to use include statements to include other jsp into each other. Now, I just have a

Re: regexp problem

2003-06-06 Thread Christian Haul
On 05.Jun.2003 -- 04:45 PM, Majcen, Kurt wrote: Hi all! We are trying to validate input fields in a web user interface via the form-validator action. One of the fields is a date field. Therefore we found a regular expression at http://www.regxlib.com/REDetails.aspx?regexp_id=113 which

Re: Can't seem to load Firebird driver

2003-06-06 Thread Christian Haul
On 06.Jun.2003 -- 11:37 AM, Nier, Nikolai wrote: Von: Christian Haul [mailto:[EMAIL PROTECTED] Just a note: I just tried to put this onto the wiki at http://wiki.cocoondev.org/Wiki.jsp?page=SpecificDatabaseConnection but could not quite follow the instructions while looking at the jaybird

Re: TR: ESQL - informix

2003-06-06 Thread Christian Haul
On 06.Jun.2003 -- 04:02 PM, arnaud daneels wrote: hello, is esql commands not supported in cocoon 2.1 ? abstractesqlconnection don't mention it ? Could you please try to put as much information into your questions as you do with your signature? I would like to help but

Re: using XML String in XSP

2003-05-28 Thread Christian Haul
On 27.May.2003 -- 04:47 PM, Gould, Troy (ELS) wrote: I'm using cocoon 2.0.4 and having difficulties with the xsp-util:include-expr and xsp:expr tags. I have a method in a class that returns a XML Document as a String which I want to utilize within an xsp page. However, I don't want the

Re: flow - sendmailaction - content

2003-05-28 Thread Christian Haul
On 28.May.2003 -- 11:27 AM, Frank Taffelt wrote: Hi, a FlowScript question: In my flowscript i wish to send email via the sendmailaction. The email should contain formatted content (HTML). How can i get the output from a pipeline into the flowscript? In 2.1 you can pass a URLs to the

Re: session attributes in sitemap

2003-05-28 Thread Christian Haul
On 28.May.2003 -- 11:56 AM, Mato Mira, Fernando wrote: Hello, Is there a way to set a session attribute in the sitemap? Only by using an action. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08

Re: flow - sendmailaction - content

2003-05-28 Thread Christian Haul
On 28.May.2003 -- 01:37 PM, Frank Taffelt wrote: In 2.1 you can pass a URLs to the action from which it obtains attachments, eg cocoon://create_my_mail . Yes i tried this and it works. But i won't use attachements. It would be nice, if the body (usually plaintext or html) could be treated

Re: using XML String in XSP

2003-05-29 Thread Christian Haul
Gould, Troy (ELS) wrote: I've tried your suggestions for whitespace and alternative xml tags (and attributes) and it still craps out. The example from Cocoon Developers book (shown below) doesn't even work xsp:logic String xmlString = testA test value/test;

Re: flow - sendmailaction - content

2003-06-01 Thread Christian Haul
Yan, Charlene wrote: Chris, Could you give me an example on attaching the url as an attachment please? I was looking at www.cocooncenter.com sendmail example. Do you attach the url in the sendmail.xsp or where? I can't do much testing right now because my system is down.:( Please look at the

Re: Where is Cocoon WebMail?

2003-06-02 Thread Christian Haul
On 02.Jun.2003 -- 10:21 AM, Laurent Trillaud wrote: Hi I'm looking for sources of the Cocoon WebMail. I can read (http://webmail.cocoondev.org/faq.html) that sources are in the scratchpad area but I can't find it, neither in block area. Is anybody knows what is going on with WebMail? Laurent

Re: inserting XML fragments in XSP

2003-06-03 Thread Christian Haul
On 02.Jun.2003 -- 02:44 PM, Fernando D. Mato Mira wrote: It seems the ';' is not the only problem. It looks like it's trying to insert the name of the variable, not its value (I think this last one is the same problem as in one of the messages you pointed to) Given: String

Re: inserting XML fragments in XSP

2003-06-03 Thread Christian Haul
On 02.Jun.2003 -- 04:10 PM, Mato Mira, Fernando wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] error-textutil:include-expr expr=errortext//error-text I get a ProcessingException Content is not allowed in prolog Strange, could you post a complete page? Chris. -- C h r

Re: any way to match on http request type

2003-06-03 Thread Christian Haul
On 02.Jun.2003 -- 09:20 AM, Miles Egan wrote: Is there any way to match/select in the pipeline for the HTTP method used in the request? I'd like to write a pipeline for handling PUT requests. Another possibility is to construct your own Matcher from the (Caching)WildCardMatcher in

Re: Input modules parameters in sitemap. Is it possible?

2003-06-03 Thread Christian Haul
On 03.Jun.2003 -- 10:02 AM, Dmitry Lisenko wrote: On Tue, 3 Jun 2003, Dmitry Lisenko wrote: Hello, Cocooners Q: Can I set parameters of input modules in sitemap instead of cocoon.xconf ? WBR, Dmitry. BTW, cocoon v2.1 cvs 05/17/2003 under Jetty. Currently, it is not

Re: inserting XML fragments in XSP

2003-06-03 Thread Christian Haul
On 02.Jun.2003 -- 06:30 PM, Fernando D. Mato Mira wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 5:13 PM To: [EMAIL PROTECTED] Subject: Re: inserting XML fragments in XSP On 02.Jun.2003 -- 04:10 PM, Mato Mira, Fernando wrote: From: Christian

Re: inserting XML fragments in XSP

2003-06-03 Thread Christian Haul
On 03.Jun.2003 -- 12:49 PM, Mato Mira, Fernando wrote: What's the correct Java translation of: util:include-expr expr=foo/ ? I can write the expansion directly in the page for now. Won't help, but here it is: XSPUtil.includeString(String.valueOf(foo), this.manager,

Re: inserting XML fragments in XSP

2003-06-04 Thread Christian Haul
On 03.Jun.2003 -- 02:16 PM, Mato Mira, Fernando wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:14 PM To: [EMAIL PROTECTED] Subject: Re: inserting XML fragments in XSP On 03.Jun.2003 -- 12:49 PM, Mato Mira, Fernando wrote: What's the correct

Re: esql exception

2003-06-05 Thread Christian Haul
Vasil I. Yaroshevich wrote: Hello! For this xsp: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; rootutil:time format=EE/ esql:connection esql:pooltivoli/esql:pool

Re: send email in cocoon with attachment

2003-06-08 Thread Christian Haul
Yan, Charlene wrote: Hi, I need to send an email to an address input from a web form with a rtf attachment. I have created a rtf doc which can be displayed in a browser. Now I need to send the rtf doc to an input email address as an attachment. Can anyone direct me to an example/resource? I

Re: mod-db - Updating multiple rows

2003-06-08 Thread Christian Haul
Amelie Cordier wrote: I have some troubles while updating multiple rows in my DB with modular database actions. Insertion of multiple rows with set=master and set=slave stuff works well but I don't know what to do with the update action. They all work the same since they share the same code for

Re: mod-db - Updating multiple rows

2003-06-09 Thread Christian Haul
Amelie Cordier wrote: Christian Haul dijo: I've tried all the solutions you suggested to me but it doesn't work and I can't find anything in the log files :( Please change the log level for sitemap to debug and look again. Which version of Cocoon are you using? I may have badly explain my

Re: is there any function like mysql_escape_string in esql?

2003-06-09 Thread Christian Haul
Valentine Z. wrote: Is there any way to tell the mysql driver escape strings passed with sql queries using ESQL logicsheet or mod db? mod db uses prepared statements thus the driver does the escaping automatically, ESQL can be told to use prepared statements as well by using esql:parameter, see

Re: XSP/Java - simple? problem

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 08:43 AM, Derek Hohls wrote: labels show=true xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute xsp:logic if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) { xsp:attribute

Re: XSP/Java - simple? problem

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 10:27 AM, Christian Haul wrote: On 11.Jun.2003 -- 08:43 AM, Derek Hohls wrote: labels show=true xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute xsp:logic if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name

Re: Alias in database descriptor file

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 11:32 AM, Amelie Cordier wrote: Thanks... I have already looked at it but with no success so I'm looking for an example... Anyway, thanks for the time you spend to answer my question :) In a table-set you need to refer to tables by @name. This @name is used to create the

Re: Alias in database descriptor file

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 01:23 PM, Amelie Cordier wrote: Thanks for your explantion... this is what I understood by reading the wiki page... but the matter is it still doesn't work... I wonder if there is an option to check in order to enable aliases or something like that... And,by the way, I do

Re: combine values and variables for parameters in the sitemap

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote: is it possible to combine values and variables for parameters in the sitemap like : map:parameter name=UserName value=corproot\{request-param:name}/ for eg - output : corproot\maxime Yes. Chris. -- C h r i s t i a n H a

Re: combine values and variables for parameters in the sitemap

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 02:40 PM, [EMAIL PROTECTED] wrote: I don't know why, but it doesn't work with all tags, I have these three parameters: map:parameter name=rootdn value=corproot\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter

Re: Alias in database descriptor file

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 03:42 PM, Amelie Cordier wrote: How do you know it doesn't work? I've two forms : one to fill the DB according to the first description and the other to fill it according to the second one... when I use the 2 separately it works... If you use the default parameter names,

Re: Query within a query

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 09:21 AM, Tim Bachta wrote: I am trying to do a query nested within another query and am getting errors, is it possible to do this and if so what am I doing wrong. My code is below: esql:queryexecute getReportsByRole xsp:exprlogin/xsp:expr/esql:query

Re: combine values and variables for parameters in the sitemap

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 03:36 PM, [EMAIL PROTECTED] wrote: I made a mistake, now I'm working with cocoon-2.1-dev 06.05.2003 If you build from sources, then start cocoon in jetty by running the command cocoon servlet and point your browser to http://localhost:/samples/xsp/java/simple for example,

Re: Running a query in xsl page

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 10:28 AM, Tim Bachta wrote: Is it possible to run an query in my xsl style sheet based on the input I get from an xsp page using the connection pool from cocoon? Perhaps you should look into the SQLTransformer. Using the connection pool from e.g. Xalan SQL extensions is AFAIK

Re: making an esql value an element in the xsp

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 10:47 AM, Tim Bachta wrote: How do I make an esql value an element. parameter-name esql:get-string column=3/ /parameter-name xsp:elementxsp:param name=nameesql:get-string column=3//xsp:param/xsp:element Sorry, no shortcut available. Chris. -- C h r i s t i

Re: Alias in database descriptor file

2003-06-12 Thread Christian Haul
On 12.Jun.2003 -- 12:42 AM, Amelie Cordier wrote: On 11.Jun.2003 -- 03:42 PM, Amelie Cordier wrote: How do you know it doesn't work? I've two forms : one to fill the DB according to the first description and the other to fill it according to the second one... when I use the 2

Re: [Error] Sendmail Logicsheet and Cinclude

2003-06-20 Thread Christian Haul
[EMAIL PROTECTED] wrote: I've been stumbling the past couple of days through the sendmail logicsheet and sendmail actions in 2.1-M1. Here's what I'm trying to do: Include generated content (i.e. content produced by a pipeline) into the body of an email sent by sendmail action or logicsheet.

Re: Modular database select - session attributes won't fly

2003-06-20 Thread Christian Haul
Arthur Allen wrote: Thanks Chris for the clarifications. You wrote-- In map:componentsmap:actions//map:components you need to configure the output for the actions, for each one of the database actions seperately. Add outputsession-attr/output This would be the place to disable prepending table

Re: mounting, but with shared sitemap?

2003-06-20 Thread Christian Haul
Dominic Chambers wrote: Almost, but I need to switch based on host name. Perhaps if I could make the result of the host name comparison a variable, like {1} is for wildcard matches, that would work perfectly. I just tried this experiemnt: Try (Cocoon = 2.0.4) map:pipeline map:match pattern=

Re: clob import: best practice?

2003-06-24 Thread Christian Haul
On 24.Jun.2003 -- 12:16 AM, Arthur Allen wrote: With some help from my friends I've been able to read largish XML clobs into a session attributes using modular data base actions. Great! Unfortunately my hope of doing any actual xml processing on these suckers using the session attribute

Re: sendMail sample not working for Cocoon2.1M2...

2003-06-24 Thread Christian Haul
On 23.Jun.2003 -- 05:28 PM, Yan, Charlene wrote: I'm using Cocoon2.1M2. I tried to run sample at http://localhost:8080/cocoon/samples/mail/sendmail/new.html. It failed. I didn't get any emails sent. The mailing archive indicated to me that mail.jar and activation.jar should be in

Re: esql:query problem

2003-06-25 Thread Christian Haul
On 24.Jun.2003 -- 08:48 AM, Tim Bachta wrote: Here is what I am trying, I am getting an invalid parameter bindings error, do I need to register the out parameters? Yes -- unless your driver returns a result set. This is highly dependent on the jdbc driver :-( If you know how to do it in

Re: sendMail sample not working for Cocoon2.1M2...

2003-06-25 Thread Christian Haul
On 24.Jun.2003 -- 10:00 AM, Yan, Charlene wrote: Chris, Looks like that to field is not changed in the logs. I hope this email is going to go through. After the send, the same page comes up. Charlene, I have send a direct reply yesterday. In short, I cannot reproduce this with a clean cvs

Re: Chaining pipelines --- write a file to server --- email it as an attachment -- delete the file

2003-06-25 Thread Christian Haul
On 24.Jun.2003 -- 03:41 PM, Yan, Charlene wrote: When I click a Send Email button on the page, the application will create a rtf file on the server, and then sendMail will send email to an email address entered by the user with attachment of the rtf file and idealy the rtf file should be

Re: esql !!!HELP!!!

2003-06-25 Thread Christian Haul
On 24.Jun.2003 -- 12:35 PM, Tim Bachta wrote: Does cocoon compile an xsp into a Java class file? If so where does it put it. The reason why I am asking is that my procedures that I am having trouble with in cocoon work fine in a java class file. Please post relevant parts of that file. It

Re: esql:query problem

2003-06-25 Thread Christian Haul
On 25.Jun.2003 -- 09:53 AM, Tim Bachta wrote: Here is my code in plain Java: snip/ CallableStatement stmt = con.prepareCall({call rptLocationDeviations(?,?,?,?)}); stmt.setInt(1, 199); stmt.setString(2, Rm 130 B);

Re: esql:query problem

2003-06-25 Thread Christian Haul
On 25.Jun.2003 -- 10:48 AM, Tim Bachta wrote: Well I tried that and no error, the only problem is I get no results either. I was looking at the example that I am working from Maybe you need to add the needs-query attribute. Some drivers don't like it if a CallableStatement is just execute()'ed

Re: PDF attachment using Sendmail and 2.0.4

2003-06-25 Thread Christian Haul
On 25.Jun.2003 -- 04:12 PM, Tony Edwards wrote: Hi all, I checked out the sendmail item on wiki and tried to mail the results of a pipeline serialized as PDF. I followed the wiki instructions to the letter. The mail worked alright, but the PDF file was attached as uuencoded text (at least

Re: esql:query problem

2003-06-26 Thread Christian Haul
On 26.Jun.2003 -- 10:04 AM, Dmitry Diskin wrote: Hello I noticed that if I insert any tag between closing /esql:query and opening esql:results - nothing works. Is it a known situation and documented somewhere? Example below doesn't work: esql:connection

Re: cocoon interface for HSQLDB

2003-06-26 Thread Christian Haul
On 25.Jun.2003 -- 11:58 PM, Bruno Pierre wrote: Hi everybody, I'm looking for a cocoon interface (mounted subsitemap) for managing a HSQLDB like phpmyadmin for mysql. Has anyone heard about this? Do I have to do it by myself? None that I am aware of. if i have to, does someone have a

Re: cocoon interface for HSQLDB

2003-06-26 Thread Christian Haul
On 26.Jun.2003 -- 10:12 AM, Bruno PIERRE wrote: Thanks, It was already in my favorites, but it is not clear. i don't know how to list all the table, all the column of a table with their type (in SQL). Most DBMS have special tables for the meta data. I don't know how hsqldb does it. Anyway,

Re: request parameter documentation?

2003-06-26 Thread Christian Haul
Dominic Chambers wrote: I need to learn exactly what names can be used to access the various request parameters from the sitemap (e.g. {request:serverName} and {requestQuery}. Sorry for not RTFM on this one, but I can't find the info I want anywhere on the site, although others seem to know bits

Re: xsp-request:get-parameter into xsl:variable problem

2003-06-30 Thread Christian Haul
On 29.Jun.2003 -- 09:50 PM, C Bram Dit Saint Amand wrote: This is an extract from request_attributes.xsl, a logicsheet which is called by some_page.xsp xsl:template match=request-attributes:get/webaction xsl:variable name=webaction-valuexsp-request:get-parameter

Re: sendMail using Logicsheet

2003-07-01 Thread Christian Haul
Yan, Charlene wrote: It may be a silly question. I'm using Cocoon2.1M2's sendMail example. http://localhost:8080/cocoon/samples/mail/sendmail/new.html. When I tried to use sendMail by logicsheet, after the email is sent, there is setup done message on the next page. I cannot find out where

<    1   2   3   4   5