Re: [PATCH] for xsp-session:getxml

2002-10-25 Thread Tuomo Lesonen
Hi Bert, Try to put esql:parameter around xsp-sessio:getxml in your query. -Tuomo On Fri, 25 Oct 2002, Bert Van Kets wrote: Hi Antonio, I've been trying hard to get this esql sample to work. The tag works perfectly. userxsp-session:getxml context=authentication

Re: XSP in XSL and Caching problem!

2002-10-15 Thread Tuomo Lesonen
We really need some advice on this problem. It's slowing our development by 600% ! Anyone? Cocoon 2.1-DEV (from CVS about a month ago) Tomcat 4.0.5 JDK 1.4.1_01 On Thu, 10 Oct 2002, Timothy Larson wrote: I am having the same problem and am using the same ugly workaround. Tomcat 3.3.1

Re: How to insert multiple rows in a table at once?

2002-10-15 Thread Tuomo Lesonen
In your sitemap inside map:actions put: map:action name=mod-db-add src=org.apache.cocoon.acting.modular.DatabaseAddAction descriptorcontext://foo/bar/database.xml/descriptor throw-exceptiontrue/throw-exception /map:action In pipeline: map:act type=mod-db-add map:parameter name=table-set

XSP in XSL and Caching problem!

2002-10-10 Thread Tuomo Lesonen
I'm using 2.1-DEV, and one file in my application is a XSL page which generates XSP for the serverpagesGenerator. The problem here is, that no changes are committed to the browser result! Only removing the work-dir and restarting tomcat helps. And after one reload of that page it's still the

Updating only certain columns with the modular DatabaseUpdateAction

2002-10-05 Thread Tuomo Lesonen
Hi, How can I set up my db descriptor so that only some columns are updated? Now, if I don't pass values with the request (With hidden fields for example) for all columns, they become NULL. Thanks, Tuomo - Please check that

Uploading to a network directory

2002-10-01 Thread Tuomo Lesonen
Hi all! I need to let users to upload files. The problem is, that the files have to go to another machine. I was thinking about WebDav, but does it work with Cocoon? The fileserver is running IIS. Thanks, -Tuomo - Please

Re: how to access without cocoon

2002-09-29 Thread Tuomo Lesonen
On Sat, 28 Sep 2002, funing wrote: Hi! I can run my webapp by http://host:8080/cocoon/xxx correctly. How to access it without cocoon by http://host:8080/xxx ? I change the map:pattern but it doesn't work :( Or rename webapps/ROOT to webapps/tomcat, and rename your webapps/xxx to

JDBC driver for MS SQL Server 2000 with blob support

2002-09-27 Thread Tuomo Lesonen
I'm trying to use the database reader, but the JDBC driver from MS doens't support blob. We can't get one of the commercial (expensive) drivers at this point, and I already tried FreeTDS which doesn't have this either. I have to keep on using SQL Server 2000. :( Any links ? -Tuomo

Re: JDBC driver for MS SQL Server 2000 with blob support

2002-09-27 Thread Tuomo Lesonen
On Fri, 27 Sep 2002, Peter Royal wrote: On Friday, September 27, 2002, at 05:10 AM, Tuomo Lesonen wrote: I'm trying to use the database reader, but the JDBC driver from MS doens't support blob. We can't get one of the commercial (expensive) drivers at this point, and I already tried

Re: JDBC driver for MS SQL Server 2000 with blob support

2002-09-27 Thread Tuomo Lesonen
work... -Tuomo Surlignage Tuomo Lesonen [EMAIL PROTECTED]: On Fri, 27 Sep 2002, Peter Royal wrote: On Friday, September 27, 2002, at 05:10 AM, Tuomo Lesonen wrote: I'm trying to use the database reader, but the JDBC driver from MS doens't support blob. We can't get one

Re: [C2.1-CVS] Problem using 2 pipelines

2002-09-25 Thread Tuomo Lesonen
On Wed, 25 Sep 2002, Antonio Gallardo Rivera wrote: Many thanks! Its a nice workaround. But what about to built the final logicsheet? many people will use it. I am trying to do that. I am sure you will welcome it. BTW, why is the XSL transform support first than the XSP? I feel like I am

Re: [Auth-framwork] - How to manage multiple documents.

2002-09-05 Thread Tuomo Lesonen
I've done mine as Carsten proposed, by using the parameters returned by the AuthAction in the pipeline. Works great for protecting multiple pages! But if you want to show different things for different users, you will have to use the SessionTransformer. It can be done inside a xsp-page too, but

Counting rows in a resultset

2002-08-28 Thread Tuomo Lesonen
Hi, How can I count the rows in my resultset? I'm using esql, but esql:row-count/ doesn't seem to be implemented yet. SQL COUNT(*) doesn't work in this case either. Can I do this with XSP? Thanks, -Tuomo - Please check that

Re: Counting rows in a resultset

2002-08-28 Thread Tuomo Lesonen
On Wed, 28 Aug 2002, Christian Haul wrote: On 28.Aug.2002 -- 10:07 AM, Tuomo Lesonen wrote: Hi, How can I count the rows in my resultset? I'm using esql, but esql:row-count/ doesn't seem to be implemented yet. SQL COUNT(*) doesn't work in this case either. Can I do this with XSP

Re: Counting rows in a resultset

2002-08-28 Thread Tuomo Lesonen
On Wed, 28 Aug 2002, Christian Haul wrote: On 28.Aug.2002 -- 10:54 AM, Leszek Gawron wrote: try to do select count(*) as row_count from table; and then in esql:row-results do esql:get-long column=row_count/ I'm not 100% sure but this highly probable to work Yes, if it is an option

Re: Counting rows in a resultset

2002-08-28 Thread Tuomo Lesonen
Time to take out some heavier arms. Since I only need to get id and name from my table, I'm placing these pairs in a hashtable inside esql:row-results/. Then I have a nice hashtable, which I iterate through later on. hashtables size() method gives the rowCount. BUT: How to implement Enumeration

Re: Counting rows in a resultset

2002-08-28 Thread Tuomo Lesonen
On Wed, 28 Aug 2002, Christian Haul wrote: On 28.Aug.2002 -- 01:29 PM, Tuomo Lesonen wrote: Time to take out some heavier arms. Since I only need to get id and name from my table, I'm placing these pairs in a hashtable inside esql:row-results/. Then I have a nice hashtable, which I

Re: Dynamic XSP resource

2002-08-21 Thread Tuomo Lesonen
:/ references to another pipeline in the same sitemap, not the same pipeline. Carles. --- Tuomo Lesonen [EMAIL PROTECTED] escribió: On Tue, 20 Aug 2002, Roger I Martin PhD wrote: Just from a quick look, the map:generate src for menu.html has cocoon: as a part of it relative path; do you

Re: Dynamic XSP resource

2002-08-20 Thread Tuomo Lesonen
located on my hard drive, but it's a resource in the current sitemap. cocoon:// would mean the parent sitemap. Generators in Cocoon (including the serverpages generator) can use the new cocoon: protocol, right? -Tuomo --Roger - Original Message - From: Tuomo Lesonen [EMAIL PROTECTED

Interpreted sitemap failing in 2.0.3

2002-08-03 Thread Tuomo Lesonen
I enabled the interpreted sitemap component in order to get the cocoon:/ protocol workin properly. Everything looked nice, but then I noticed that mounted sitemaps were not inheriting any components from their parents. I wouldn't like to include same declarations in every sitemap. I have the

Controlling the flow based on users role

2002-07-31 Thread Tuomo Lesonen
Hi, Is there a way to protect resources in a way that only certain roles have access to them? Already tried Session Selector, but I wasn't able to access the session context that the auth-login action creates. I'd also like to know if it's possible for a user to have multiple roles defined (for

SUMMARY: Deleting multiple rows with the modular DatabaseDeleteAction

2002-07-17 Thread Tuomo Lesonen
Thank you Chris, everything works ok now! :) -Tuomo On 15.Jul.2002 -- 01:40 PM, Tuomo Lesonen wrote: Hi, I can't figure out how to remove multiple rows with this action within a single request. Am I using the right syntax in HTML? : Tuomo, you need to define a set with a master

Deleting multiple rows with the modular DatabaseDeleteAction

2002-07-15 Thread Tuomo Lesonen
Hi, I can't figure out how to remove multiple rows with this action within a single request. Am I using the right syntax in HTML? : form method=post action=delete.html input type=checkbox name=inventory.id value=10 input type=checkbox name=inventory.id value=11 input type=checkbox