Number formatting bug in i18n-transformer?

2006-05-23 Thread Tuomo L
Hello, I'm trying to format currency using i18n:number. In the docs, there is an example: i18n:number type=currency value=1703.7434 / which should return: $1,703.74 using US-locale. I get 1703,00 e using finnish locale. After trying different combinations, it seems that the decimal part is

[SOLUTION] Re: Number formatting bug in i18n-transformer?

2006-05-23 Thread Tuomo L
Answering to my own question: I added @src-locale=en_US to the i18n-tag, which helped. The transformer was using the locale from my server, which caused incorrect formatting. -Tuomo On Tue, 23 May 2006, Tuomo L wrote: Hello, I'm trying to format currency using i18n:number. In the docs

Reviewing a patched Cocoon component

2006-02-20 Thread Tuomo L
Hey, Could someone check out this patch I submitted a while ago for the Databases-block? It's a fix for the DatabaseSelectAction. http://issues.apache.org/jira/browse/COCOON-1740 Thanks, Tuomo

Re: Modular DatabaseSelectAction: Getting multiple rows inoperative

2006-01-24 Thread Tuomo L
2006, Tuomo L wrote: Hi, I need to select all username and password -columns of specific users. Here's a simple configuration: table name=user keys key name=id type=int set=master mode name=request-param parameter=id* type=all/ /key /keys values value name=username type=string

Modular DatabaseSelectAction: Getting multiple rows inoperative

2006-01-22 Thread Tuomo L
Hi, I need to select all username and password -columns of specific users. Here's a simple configuration: table name=user keys key name=id type=int set=master mode name=request-param parameter=id* type=all/ /key /keys values value name=username type=string/ value

SOLUTION: Custom DOM-based transformer: How to ignore whitespace?

2005-09-27 Thread Tuomo L
Thanks, this works. :) -Tuomo On Tue, 27 Sep 2005, Upayavira wrote: Tuomo L wrote: Hi, I'm writing a custom DOM-based transformer (extends AbstractDOMTransformer), but I cannot figure out, how to produce output with no whitespace. It's propably very simple thing... Anyone? Whitespace

Custom DOM-based transformer: How to ignore whitespace?

2005-09-26 Thread Tuomo L
Hi, I'm writing a custom DOM-based transformer (extends AbstractDOMTransformer), but I cannot figure out, how to produce output with no whitespace. It's propably very simple thing... Anyone? -Tuomo

[SOLUTION] DatabaseReader problem with 2.1.7, help needed

2005-07-18 Thread Tuomo L
Updated the JDBC-driver to the latest: Microsoft SQL Server 2005 JDBC Driver Beta 1. This works fine with Cocoon 2.1.7. -Tuomo On Sun, 17 Jul 2005, Joerg Heinicke wrote: On 17.07.2005 00:36, Tuomo L wrote: Thanks, I tested the sample, and it does work with HSQLDB. But when I tested

Re: DatabaseReader problem with 2.1.7, help needed (fwd)

2005-07-17 Thread Tuomo L
=${qkpi.columnNames}tdc:out value=${columnName}//td/c:forEach c:forEach var=row items=${qkpi.rowsByIndex} varStatus=vs trc:forEach var=col items=${row}tdc:out value=${col}//td/c:forEach/tr /c:forEach /table /body /html /jsp:root Tuomo L wrote: Thanks, I tested the sample, and it does work

Re: DatabaseReader problem with 2.1.7, help needed

2005-07-17 Thread Tuomo L
00:36, Tuomo L wrote: Thanks, I tested the sample, and it does work with HSQLDB. But when I tested it against SQL Server with similar results I got before: Upload works but reading the file with DatabaseReader returns 0 bytes. :( So, my guess is, something has changed between 2.1.5 and 2.1.7

Re: DatabaseReader problem with 2.1.7, help needed (fwd)

2005-07-16 Thread Tuomo L
(Cocoon 2.1.7, Tomcat 5.5) After upload, this uses DatabaseReader to retrieve the image from HSQLDB. If this works ok, then the problems are with SQL Server maybe the column definition Tuomo L wrote: Hi, Is anyone using the DatabaseReader with Cocooon 2.1.7 ? We just cannot get

Databasereader problem, cannot download

2005-05-22 Thread Tuomo L
Posting this here, since no reply from users@cocoon.apache.org - Forwarded message from Tuomo L [EMAIL PROTECTED] - Hi, What's wrong, when this warning appears in log: Assuming client reset stream ? Every file we're trying to return from db comes out as 0 bytes, and the error (warning

[SOLUTION] Authentication not working with 2.1.7

2005-04-19 Thread Tuomo L
In the login page html we had the form's encoding set to multipart/form-data. In Cocoon's web.xml enable-uploads was set to false (default), which prevented the request parameters being forwarded. After setting it to true everything works. -Tuomo On Mon, 18 Apr 2005, Tuomo L wrote: Hi, We just

Authentication not working with 2.1.7

2005-04-18 Thread Tuomo L
Hi, We just updated from 2.1.5 to 2.1.7, and the authentication (login-action) stopped functioning. It seems that no parameters are no longer forwarded to the authentication resource. We have the same configuration as in the samples, using: cocoon:raw:/authenticate as the authentication

Re: SourceResolver for custom Source (and SourceFactory)

2004-12-29 Thread Tuomo L
to happen by Cocoon. A web page that called this source 10 times took 20 seconds to load on a fairly fast machine. The zip file is only 84Kb! Any optimization tips? Didn't think Java's zip-utilities are so slow... -Tuomo On Wed, 29 Dec 2004, Carsten Ziegeler wrote: Tuomo L wrote: Hi, I'm writing

SourceResolver for custom Source (and SourceFactory)

2004-12-27 Thread Tuomo L
Hi, I'm writing a custom Source and SourceFactory for Cocoon, which takes uris in this form: mysource:context://foo/bar.zip:mydir/myfile.gif. The part between the two :'s is a sub-uri, which I need to resolve. How can I do this, so that any Cocoon URI works, for example: cocoon://foo.bar and

PropagatorAction broken?

2004-10-22 Thread Tuomo L
Hi, Could someone please check, if the PrpagatorAction is functional? I'm trying to propagate some values to session-attr and/or request-attr, but cannot read them back (Cocoon 2.1.5)! :( -Tuomo

Input module for sitemap parameters?

2004-10-20 Thread Tuomo L
Hi, Is there an input module for getting the values of sitemap parameters? I'd like to use this with the modular database actions. -Tuomo

Re: Storing session data in database

2004-06-24 Thread Tuomo L
in DatabaseAction.java. Anyway, my workaround was to use the jxpath module. -Tuomo On Wed, 23 Jun 2004, Tuomo L wrote: Hi, Could someone please confirm, is there an issue with saving session context data in database using the modular DatabaseAddAction ? I cannot get this to function. My earlier

Storing session data in database

2004-06-23 Thread Tuomo L
Hi, Could someone please confirm, is there an issue with saving session context data in database using the modular DatabaseAddAction ? I cannot get this to function. My earlier post from april: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=108080945007607w=2 Cocoon 2.1.5. Thanks in

Uploading multiple files to database simultaneously

2004-06-21 Thread Tuomo L
Hi, I saw in the database samples, that one needs to use the raw-request-param to save binary data correctly. Now, is it possible to upload multiple files with same request, using the raw-request-param? I wasn't able to achieve this functionality, but got a nullpointer. Here's the critical

Downloading large files with Cocoon 2.1.5 + Tomcat 4.1.24

2004-06-21 Thread Tuomo L
Hi, We need to store large files (30MB) in a database (MS SQL). The upload seems to work, because we've compared the filesize in db to the actual file. But when downloading, browser (IE or Mozilla) does not succeed. IE saves 0 bytes to disk, and Mozilla doesn't even start the download process.

Re: Downloading large files with Cocoon 2.1.5 + Tomcat 4.1.24

2004-06-21 Thread Tuomo L
, Tuomo L wrote: Hi, We need to store large files (30MB) in a database (MS SQL). The upload seems to work, because we've compared the filesize in db to the actual file. But when downloading, browser (IE or Mozilla) does not succeed. IE saves 0 bytes to disk, and Mozilla doesn't even start

SQL Transformer nested queries not working

2004-06-17 Thread Tuomo L
When doing this: sql:execute-query sql:querysome query on 1st level.../sql:query sql:execute-query sql:querysome query on 2nd level.../sql:query /sql:execute-query sql:execute-query sql:querysome other query on 2nd level.../sql:query /sql:execute-query /sql:execute-query ...the

SQL Transformer nested queries and the level attribute problem

2004-06-17 Thread Tuomo L
Hi, In addition to my earlier post (http://marc.theaimsgroup.com/?l=xml-cocoon-devm=108746592616192w=2), I found that when doing nested queries with more than 2 levels, one cannot reference other ancestors than the parent. The level-attribute seems to reference to immediate parent in any case.

Re: Modular Database Action query caching inoperative....bug....

2004-05-05 Thread Tuomo L
Does this possibly fix this too? Haven't gotten any replies on this yet... :( It'd be nice, if someone could at least try it out, if it works or not. http://marc.theaimsgroup.com/?l=xml-cocoon-devm=108272532719287w=2 -Tuomo On Wed, 28 Apr 2004, Christian Haul wrote: Christian Haul wrote:

BUG?: Session input-modules not working with modular database actions

2004-04-23 Thread Tuomo L
Hi, I posted this about month ago to both lists, but haven't gotten any answer. I think it's pretty serious, if it's a bug. I need to insert data from session context in database. This is what I have in the descriptor: value name=owner_id type=all mode name=session-context type=all

Custom generators and configuration parameters

2004-04-16 Thread Tuomo L
Hi all, Is it possible to provide configuration parameters in sitemap for generators? Like this: map:generator name=my-generator src=MyGenerator some-parameterfoobar/some-parameter /map:generator This is possible for at least transformers and actions. If so, how do I read those parameters in

Re: AW: Custom generators and configuration parameters

2004-04-16 Thread Tuomo L
(some-parameter).getValue(); ... -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Tuomo L Gesendet: Freitag, 16. April 2004 11:49 An: [EMAIL PROTECTED] Betreff: Custom generators and configuration parameters Hi all

Using the session context with database actions

2004-04-01 Thread Tuomo L
Posting this here for a faster response... I need to save the user's id in db. Here's what I have in database descriptor: value name=owner_id type=int mode name=session-context type=all parameterauthentication/authentication/ID/parameter /mode /value All I get is NULL in the db. Is the

Deleting original files after ZipArchiveSerialization

2004-03-15 Thread Tuomo L
Hi, I'm using the ZipArchiveSerializer to zip up some files. I need to give the user an option to check a box saying Delete original files after compression. I wrote a FileDeleteAction, which uses org.apache.avalon.excalibur.io.FileUtil.forceDelete method to delete these files. The action works

Possible bug in logout action?

2004-02-10 Thread Tuomo L
Hi, I'm doing login and logout in sub-sitemap, and all works except the logout-action, which gives this: org.apache.avalon.framework.configuration.ConfigurationException: Handler names must be unique: my-handler In sub-sitemap: map:match pattern=logout map:act type=auth-logout

Re: AW: Browser based content in a multi-sub-sitemap system

2004-02-09 Thread Tuomo L
idea, but you could use XML entities to include the resources part. HTH Carsten -Original Message- From: Tuomo L [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 2:06 PM To: [EMAIL PROTECTED] Subject: Browser based content in a multi-sub-sitemap system Hi

Browser based content in a multi-sub-sitemap system

2004-02-06 Thread Tuomo L
Hi, Should anyone have a hint, how to do this, please let me know! I have a site with dozens of sub-sitemaps, for which I need to support different client devices (pda, wap etc.). Each sub-sitemap has pipelines. I need to provide an exit point for each pipeline, without replicating it into each

RE: Authentication problems in sub-sitemap

2003-11-05 Thread Tuomo L
I see. Thought they were passed as regular sitemap parameters (as it is with Cocoon resources). But this is probably a better way. Thanks! :) -Tuomo On Wed, 5 Nov 2003, Carsten Ziegeler wrote: Tuomo L wrote: Hi, Is this still an issue? I can't get the LoginAction to pass through

RE: Logging problems

2003-11-04 Thread Tuomo L
Hey, that fixed it! :) But what is the logic of this? -Tuomo On Tue, 4 Nov 2003, Unico Hommes wrote: In your logkit.xconf try category name=sitemap.mycategory instead of just category name=mycategory -- Unico -Original Message- From: Tuomo L [mailto:[EMAIL PROTECTED] Sent

Authentication problems in sub-sitemap

2003-11-04 Thread Tuomo L
Hi, Is this still an issue? I can't get the LoginAction to pass through. It seems that the authentication-resource is not getting the parameters from LoginAction. I have in mounted sitemap: map:act type=auth-login map:parameter name=handler value=default/ map:parameter name=parameter_username

RE: getxml in XSP throws NPE if @path is invalid

2003-10-21 Thread Tuomo L
Thank you! On Tue, 21 Oct 2003, Carsten Ziegeler wrote: Hi, I just reverted the change. The behaviour now should be as you descripe it. But this means, that you get your NPE again if you don't take care of it. Carsten -Original Message- From: Tuomo L [mailto:[EMAIL PROTECTED

RE: getxml in XSP throws NPE if @path is invalid

2003-10-15 Thread Tuomo L
Thanks, sounds like a solution. I'll give it a try! :) -Tuomo On Tue, 14 Oct 2003, Antonio Gallardo wrote: Tuomo L dijo: Here's the line of code, that gives the error (No error, if /authentication/data/bar/ is actually available. The data section is created dynamically for every user, so

RE: getxml in XSP throws NPE if @path is invalid

2003-10-15 Thread Tuomo L
Hi Carsten, I'd say null is the way to go, no matter what @as is. Isn't empty DocumentFragment just like an empty string? Empty string is still a string, and sometimes usefull in XSP. So, returning null if: @path does not exist in the session context (or @path is an empty string) @path does not

RE: getxml in XSP throws NPE if @path is invalid

2003-10-14 Thread Tuomo L
=/authentication/data/bar/; -Tuomo On Mon, 13 Oct 2003, Antonio Gallardo wrote: Tuomo L dijo: Hi, I finally had the chance to try this, but now I get: java.lang.ClassCastException Can you show the code from where are you calling the tag? Antonio Gallardo

RE: getxml in XSP throws NPE if @path is invalid

2003-10-13 Thread Tuomo L
Hi, I finally had the chance to try this, but now I get: java.lang.ClassCastException -Tuomo On Fri, 10 Oct 2003, Carsten Ziegeler wrote: Hi, you have to update the session jar. Carsten -Original Message- From: Tuomo L [mailto:[EMAIL PROTECTED] Sent: Friday, October 10

RE: getxml in XSP throws NPE if @path is invalid

2003-10-13 Thread Tuomo L
$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Unknown Source) -Original Message- From: Tuomo L [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 12:44 PM To: [EMAIL PROTECTED] Subject: RE: getxml in XSP throws NPE if @path is invalid Hi, I

RE: getxml in XSP throws NPE if @path is invalid

2003-10-10 Thread Tuomo L
in a patch that should fix this problem. Could you please test it? Thanks Carsten -Original Message- From: Tuomo L [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 10:26 PM To: [EMAIL PROTECTED] Subject: getxml in XSP throws NPE if @path is invalid Hi

getxml in XSP throws NPE if @path is invalid

2003-10-08 Thread Tuomo L
Hi, This gives me a nasty NPE in XSP: String foo = xsp-session-fw:getxml context=authentication path=/authentication/data/bar/; This does not: String foo = xsp-session-fw:getxml context=authentication path=/authentication/ID/; Shouldn't it return null, if the given path is not available? It

New protocol for in-memory resources

2003-09-09 Thread Tuomo L
Hi, I've been playing with the upload-mechanism of Cocoon, and noticed that it's now required to cath the uploaded file since cocoon deletes it (At least this is the behaviour on my 2.1 installation with autosave-upload true and allow-uploads true) I'm working on a ZipArchiveExtractorAction,