RE: Excel needs filename?

2002-04-12 Thread Shaw, Chris
correction: I got it working by adding the following line in my generator: response.setHeader(Content-Disposition, inline; filename=output.xls); ..but having to hard-code a parameter name in my generator as well as my sitemap leads to a potential consistency problem. Any better ideas? TIA

RE: Cookie question

2002-04-12 Thread Piroumian Konstantin
From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]] Thanks for tip Konstantin. Not right away but when looking into the code I found up that if you define your action with store-in-cookietrue/store-in-cookie it will do the job. To my surprise I did not be able to find up this

Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)

2002-04-12 Thread Nicola Ken Barozzi
From: Yuri Gadow [EMAIL PROTECTED] Try with br name=br/ If you mean an XSLT using that syntax (otherwise, I guess I'm missing something), I'm afraid that doesn't help. It's a hack to get Netscape 4 to use that tag. If I write: html body ciaobr/ ciao/body /html in Netscape

Re: XSLT named teplates and xsl:param (is it a BUG?)

2002-04-12 Thread Jerzy Kut
Why did You use '{' and '}' tokens? Isn't enough only xsl:if test=$dayofweek=1 or $dayofweek=7 ??? - Original Message - From: Ivan Luzyanin [EMAIL PROTECTED] To: Cocoon-users [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 8:34 PM Subject: XSLT named teplates and xsl:param (is it a

esql and db-actions error handling

2002-04-12 Thread Jerzy Kut
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 /esql:query esql:results esql:row-results

Re: Esql row-results

2002-04-12 Thread Torsten Curdt
esql supports this from scratch: esql:execute-query ... esql:use-limit-clausemysql/esql:use-limit-clause esql:skip-rows0/esql:skip-rows esql:max-rows0/esql:max-rows if your database has no support for such (seem to be all others than mysql and postgres) you can even use

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 Jerzy Kut
Hi Christian! I have defined resource: !-- - deleting of existing employee -- map:resource name=employee-delete map:act type=db-delete map:parameter name=descriptor value=mekka/resources/employee-db.xml/ map:redirect-to uri=employees/ /map:act

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

Got error 127 from table handler

2002-04-12 Thread Christian Joelly
Hello! maybe this is offtopic here... i get the following errors in my cocoon application when it is used from several hosts at the same time from different clients workstations. does anybody know how to avoid this problem? --- Cocoon 2 - Internal server error type fatal message Exception in

Unable to locate resource: messages (C2)

2002-04-12 Thread Volker Schneider
Hi colleagues, I need the i18n transformer and tried a simple sample: first.xml: route xmlns:i18n=http://apache.org/cocoon/i18n/2.0; start i18n:translate i18n:textStartpunkt/i18n:text /i18n:translate /start zielEndpunkt:/ziel abschnitte /abschnitte /route dictionary.xml: ?xml

Intialization of Custom Component upon Cocoon 2.0.2 startup

2002-04-12 Thread Rasik Pandey
Hello, Would any of you have experience with getting Cocoon to initialize a custom component upon startup? In my component, I have implemented the Initializable and Startable interfaces from the Avalon Framework packages, but I am having no luck at runtime? Thank you, Rasik Pandey

RE: Unable to locate resource: messages (C2)

2002-04-12 Thread Piroumian Konstantin
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi colleagues, I need the i18n transformer and tried a simple sample: first.xml: route xmlns:i18n=http://apache.org/cocoon/i18n/2.0; start i18n:translate i18n:textStartpunkt/i18n:text /i18n:translate /start It's enough to

RE: Unable to locate resource: messages (C2)

2002-04-12 Thread Volker Schneider
Hi Konstantin, thank you for your reply. I already looked in this examples before, but they don't really help, because they are not using a locale definition and they do nothing else than I did. In the documentation I read something about message catalog. Has this something to with the locale

RE: Unable to locate resource: messages (C2)

2002-04-12 Thread Piroumian Konstantin
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, thank you for your reply. I already looked in this examples before, but they don't really help, because they are not using a locale definition and they do nothing else than I did. In the documentation I read

Re: documentation for managers, was HP-SOAP Server announcement

2002-04-12 Thread Brent Eades
On 11 Apr 2002 at 10:46, Peter Robins wrote: In principle, Cocoon is of interest, but the key question is: is it worth the effort and the extra overhead of using Java? A very relevant point. I suppose this is an issue facing all of the Jakarta projects, the fact that besides selling

RE: Unable to locate resource: messages (C2)

2002-04-12 Thread Volker Schneider
Hi Konstatin, the catalogue-name and catalogue-location tag was the missing thing. Now it works for me as well. It would be great, if somebody could take the time and update/complete the user documentation. Thank you very much for your help, regards - Volker - -Original Message- From:

Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)

2002-04-12 Thread Peter Robins
excuse me if I'm missing the point but, if the objective is to get br instead of br/, wouldn't it be far easier to use the html output method in the xslt script directly, and not use the HTML serializer? On Friday 12 Apr 2002 7:59, Nicola Ken Barozzi wrote: From: Yuri Gadow [EMAIL PROTECTED]

RE: MS Access on Cocoon2???

2002-04-12 Thread du Plessis, Corneil C
Title: RE: MS Access on Cocoon2??? Look for the MDE (Microsoft Data Engine) it is available for Visual Studio users and is basically a five user version of SQL Server and will run circles around Access. Or just use HyperSQL if the app is small enough. -Original Message- From: Rajput,

RE: How to switch language for i18n at runtime?

2002-04-12 Thread Piroumian Konstantin
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Dear colleagues, I want to switch language to en at runtime. I read the source of the LocationAction and tried so set the language-attribute in some different ways, but this didn't work. Does anybody know, how I can switch the

RE: documentation for managers, was HP-SOAP Server announcement

2002-04-12 Thread Matthew Langham
Brent Eades wrote: approval processes in their respective organizations before they could consider using Java/Cocoon in production. This is something that Jakarta overall could probably spend a little more time educating users about. Well, we have been selling Cocoon based solutions to our

RE: How to switch language for i18n at runtime?

2002-04-12 Thread Volker Schneider
Hi Konstantin, thank you for your reply. Sorry, for being a nag in this point. Do you mean this: map:match pattern=test map:act type=locale map:parameter name=locale-attribute value=x/ map:generate src=prototyp/first.xml/ map:transform type=i18n/ map:serialize type=xml/

[C2] JDBC Connection

2002-04-12 Thread Aleksey Globets
Hi All, My environment is: Windows 98SE JDK1.4 Tomcat 4.0.3 LE (jdk 1.4) Cocoon 2.0.2 How I understand from the documentation that to use the JDBC connection to a database I need to grow down to JDK 1.3 or to compile the JDBC drivers from the sources? Am I right? Thanks, Aleksey Globets

RE: How to switch language for i18n at runtime?

2002-04-12 Thread Piroumian Konstantin
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, thank you for your reply. Sorry, for being a nag in this point. Do you mean this: map:match pattern=test map:act type=locale map:parameter name=locale-attribute value=x/ map:generate

How to access jdbc datasource in cocoon.xconf from Cocoon actions

2002-04-12 Thread Ivan Luzyanin
Hi! The question is: How i can use jdbc datasource defined in cocoon.xconf in my Cocoon action class ? Example: //--- cocoon.xconf jdbc name=my_pool pool-controller min=5 max=10/ dburljdbc:mysql:///test/dburl usertest/user

RE: How to access jdbc datasource in cocoon.xconf from Cocoon actions

2002-04-12 Thread von Schwerdtner, Thomas (GXS, FPI)
Title: RE: How to access jdbc datasource in cocoon.xconf from Cocoon actions And one more thing. Where can i get Cocoon javadoc??? Does one exist??? http://xml.apache.org/cocoon/apidocs/index.html -T

Re: How to switch language with i18n at runtime?

2002-04-12 Thread Volker Schneider
Hi Konstantin, I'm sorry but if I tried your solution, I got the german translation in every case. I did this: map:actions ... map:action logger=sitemap.action.locale name=locale src=org.apache.cocoon.acting.LocaleAction map:parameter name=language-attribute value=x/ map:parameter

Re: How to access jdbc datasource in cocoon.xconf from Cocoonactions

2002-04-12 Thread Ivan Luzyanin
I know HOW! :) //- ComponentSelector selector = (ComponentSelector) manager.lookup(Roles.DB_CONNECTION); DataSourceComponent datasource = (DataSourceComponent) selector.select(my_pool); //- Thanx to Thomas von Schwerdtner! On Fri, 2002-04-12 at

RE: How to switch language with i18n at runtime?

2002-04-12 Thread Piroumian Konstantin
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, I'm sorry but if I tried your solution, I got the german translation in every case. I did this: map:actions ... map:action logger=sitemap.action.locale name=locale src=org.apache.cocoon.acting.LocaleAction

RE: cocoon web application

2002-04-12 Thread Luca Morandini
Bogdan, may you take a look at the FAQ, first ? Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html

RE: How to switch language with i18n at runtime? - temporary solution

2002-04-12 Thread Volker Schneider
Hi Konstantin, I tried a request parameter called locale (as you said before): .../Cocoon/test?locale=en and .../Cocoon/test?locale=de works fine, but the map:parameter name=locale-attribute ...-section can be left out (it has no effect). It is not possible for me to use an other name for

Re: cocoon web application

2002-04-12 Thread Bogdan Cirstea
i did that, believe me something i missed, but i don't know what. in faq is an example but for apache+cocoon. maybe a step by step tutorial, don't know anyway, i'll keep trying - Original Message - From: Luca Morandini [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 12, 2002

RE: How to switch language with i18n at runtime? - temporary solution

2002-04-12 Thread Piroumian Konstantin
From: Volker Schneider [mailto:[EMAIL PROTECTED]] Hi Konstantin, I tried a request parameter called locale (as you said before): .../Cocoon/test?locale=en and .../Cocoon/test?locale=de works fine, but the map:parameter name=locale-attribute ...-section can be left out (it has

Re: cocoon web application

2002-04-12 Thread Bert Van Kets
The easiest way is to copy the cocoon.war file to yourapp.war, start tomcat and test it by going to localhost:8080/yourapp Then you can delete every directory in the yourapp directory, except for the WEB-INF directory. Edit the sitemap and delete every action, resource, view and pipeline you

RE: Pooling under Jrun 3.1 (was RE: Installing cocoon2 with Jrun 3.1)

2002-04-12 Thread Vadim Gritsenko
From: Chris Warr [mailto:[EMAIL PROTECTED]] I removed the pooling and it works fine? Anyone else had pooling problems under Jrun 3.1? Can't help you with this one, but IIRC sample database (HSQLDB) works fine with JRun. Vadim Chris. -Original Message- From: Chris Warr

RE: How to switch language with i18n at runtime?

2002-04-12 Thread Volker Schneider
Hi Konstantin, (1) I used both because I was not quite sure which of these parameters would help. I only need one parameter. (2) At the moment I don't know whether the locale parameter can be reserved for other purposes of our application. But I think I could reserve it for this purpose. (3)

RE: Excel needs filename?

2002-04-12 Thread Vadim Gritsenko
From: Shaw, Chris [mailto:[EMAIL PROTECTED]] correction: I got it working by adding the following line in my generator: response.setHeader(Content-Disposition, inline; filename=output.xls); ..but having to hard-code a parameter name in my generator as well as my sitemap leads to a

RE: Got error 127 from table handler

2002-04-12 Thread Vadim Gritsenko
From: Christian Joelly [mailto:[EMAIL PROTECTED]] Hello! maybe this is offtopic here... I do agree with you, this sounds like offtopic. Read you DB documentation on what the heck is this SQLException about (FWIW, I like Oracle documentation: search for your ORA- error and it gives

Re: cocoon web application

2002-04-12 Thread Andrew Savory
On Fri, 12 Apr 2002, Bogdan Cirstea wrote: hi! i want to develop an web application based on cocoon technology. can anyone tell me which is the basic structure of such an application? Although out-of-date, chello has some useful information and provides a handy starting point. Take a look at

RE: [C2] JDBC Connection

2002-04-12 Thread Vadim Gritsenko
From: Aleksey Globets [mailto:[EMAIL PROTECTED]] Hi All, My environment is: Windows 98SE JDK1.4 Tomcat 4.0.3 LE (jdk 1.4) Cocoon 2.0.2 How I understand from the documentation that to use the JDBC connection to a database I need to grow down to JDK 1.3 or to compile the JDBC

RE: cocoon web application

2002-04-12 Thread Luca Morandini
Bogdan, ok, I'll believe you. 1) to put an app under a directory other than cocoon, just specify the location of the sub-sitemap using the file: prefix, like in: map:pipeline map:match pattern=istat/** map:mount uri-prefix=istat src=file:///d:/web/istat/

Re: Session attribute change within aggregation

2002-04-12 Thread KOZLOV Roman
Hello, Vadim thank you for your advice. It helped me. I was busy some time and had postponed this problem. Unfortunatelly it still remains. I've found out that WildcardSessionAttributeMatcher (I'm using Cocoon 2.0.1) doesn't see session attributes changed or created before in the same

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

making tree like structure using XML,XSP,XSL

2002-04-12 Thread Niket Anand
Hi All, I have one function that connect to database and retrivedata in form ofHashtable. My Hashtablemay be like this. MsgID ParentID 1 0 2 0 3 0 4 0 5 1 6 1 7 6 8 7 9 2 102 115 125 Tree structure would be like this based on MsgID and ParentID MsgID

Re: Excel needs filename?

2002-04-12 Thread Andrew C. Oliver
This is is a known issue with various versions Internet Explorer. For some reason it ignores the mime type and goes right for the file extension. There are ways around this but none of them are pretty. Bascially you need to try and architect your solution to cause the filename to be

RE: Session attribute change within aggregation

2002-04-12 Thread Vadim Gritsenko
From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hello, Vadim thank you for your advice. It helped me. I was busy some time and had postponed this problem. Unfortunatelly it still remains. I've found out that WildcardSessionAttributeMatcher (I'm using Cocoon 2.0.1) doesn't see

Re: Session attribute change within aggregation

2002-04-12 Thread KOZLOV Roman
Thank you very much for the lesson. I'll try another way. Roman Vadim Gritsenko wrote: From: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Hello, Vadim thank you for your advice. It helped me. I was busy some time and had postponed this problem. Unfortunatelly it still remains.

accessing session context from stylesheet

2002-04-12 Thread Franosch, Heike
Hi all, I want to insert the session id to my URLs from within the stlyesheet and don't know how to access the context. I have seen a hint about the SessionValidationAction, but I just can't get it run. Has someone a nice tip or maybe some sample code how to achieve this? Thanks, Heike p.s.

JdbcConnection.prepareStatement problem

2002-04-12 Thread David Parry
I've been playing around with some basic SQL queries and generally finding it easy enough to do... managed to get connections to MySQL and Postgres, both locally and on remote machines. I've now tried connecting to MS SQL Server... ahem... and of course, I'm now having more problems. What I've

RE: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)

2002-04-12 Thread Yuri Gadow
I thought br / was the classic tric for all elder browsers? Yes, per the XHTML spec itself: http://www.w3.org/TR/2001/WD-xhtml1-20011004/#guidelines in every case I do live under the impression that the html serializer will create br for you instead of br/ did you check your sitemap? It

Re: Delete

2002-04-12 Thread Carlos Araya
Title: Re: Delete On 04/12/02 0:08, Daniel Fernandez [EMAIL PROTECTED] wrote: Si ves donde dice to unsubscribe, esa es la direccion a la que mandar mensajes. Alli es donde dejas la lista - Please check that your question has

Re: accessing session context from stylesheet

2002-04-12 Thread Andrew Savory
On Fri, 12 Apr 2002, Franosch, Heike wrote: I want to insert the session id to my URLs from within the stlyesheet and don't know how to access the context. I have seen a hint about the SessionValidationAction, but I just can't get it run. Has someone a nice tip or maybe some sample code

Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)

2002-04-12 Thread Peter Robins
On Friday 12 Apr 2002 17:24, Yuri Gadow wrote: in every case I do live under the impression that the html serializer will create br for you instead of br/ did you check your sitemap? It does not. I just tested this, Yuri (I'm using 2.0.2 with xerces/xalan as provided). Put br/ in xsl

Re: documentation for managers, was HP-SOAP Server announcement

2002-04-12 Thread Peter Robins
On Friday 12 Apr 2002 12:43, Matthew Langham wrote: But you know, questions like: what business objectives does it help meet and how are really difficult to answer in a way that would suit all scenarios. I would certainly agree with that. Even trying to define what Cocoon is is not so

RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)

2002-04-12 Thread Mark S. Kent
I'm still seeing this error message about the sitemap although I see sitemap files in the work folder (buried in org.apache). Is there a way to put debug crumbs in the sitemap to write to the logs during generation to help me find out exactly what is causing the LanguageException: Could

RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)

2002-04-12 Thread Vadim Gritsenko
From: Mark S. Kent [mailto:[EMAIL PROTECTED]] I'm still seeing this error message about the sitemap although I see sitemap files in the work folder (buried in org.apache). Is there a way to put debug crumbs in the sitemap to write to the logs during generation to help me find out

RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)

2002-04-12 Thread Mark S. Kent
I've got a sitemap_xmap.java and .class: 79221 Apr 12 14:29 sitemap_xmap.class 15470 Apr 12 14:29 sitemap_xmap$Configurer.class 339625 Apr 12 14:29 sitemap_xmap.java Contents of ERROR.LOG: - begin --- ERROR (2002-04-12)

Re: accessing session context from stylesheet

2002-04-12 Thread Nicola Ken Barozzi
From: Andrew Savory [EMAIL PROTECTED] On Fri, 12 Apr 2002, Franosch, Heike wrote: I want to insert the session id to my URLs from within the stlyesheet and don't know how to access the context. I have seen a hint about the SessionValidationAction, but I just can't get it run. Has

Cocoon 2.1-dev + JRun 4.0RC

2002-04-12 Thread Michael Mertel
Hi there, I hope I don't bother you with this short info about above subject. I tried to install the latest developer snapshot on a Windows XP system with Sun JDK1.4 in combiniation with the release candidate of JRun 4.0. It worked without any problems so far. The one and only problem was til

Livesites

2002-04-12 Thread Alex McLintock
I would appreciate it if this site got listed in the Cocoon2 livesites list. URL: http://www.OWAL.co.uk/ Software: Cocoon2 The site is fairly simple but is designed to be easy to update. It includes a pdf brochure containing most of the website in one easily printable document. It is static

Problems with XSP when upgrading 1.8.2 - 2.0.2

2002-04-12 Thread William Bagby
I have looked in the mailing lists, to no avail, please forgive me if these questions have been answered already I have upgraded Cocoon 1.8.2 to Cocoon 2.0.2. Here's my setup: Cocoon 2.0.2 Weblogic 6.0sp2 Solaris 2.6 (Sparc) I have successfully installed C2, all the samples work,

Re: documentation for managers, was HP-SOAP Server announcement

2002-04-12 Thread Andrew Savory
On Fri, 12 Apr 2002, Peter Robins wrote: meaning that Cocoon can only be implemented by specialist consultants working in an ad hoc manner? That doesn't sound like a very large install base to me. It's the same with any new technology - it takes a while for a body of work to build up, and for

RE: LanguageException error on startup (Coc2.0.2,Tomcat3.2.2)

2002-04-12 Thread Vadim Gritsenko
From: Mark S. Kent [mailto:[EMAIL PROTECTED]] I've got a sitemap_xmap.java and .class: 79221 Apr 12 14:29 sitemap_xmap.class 15470 Apr 12 14:29 sitemap_xmap$Configurer.class 339625 Apr 12 14:29 sitemap_xmap.java Contents of ERROR.LOG: Please look into other log files as

Re: How to get HTML (not XHTML) from the HTMLSerializer (C2.0.1)

2002-04-12 Thread Yuri Gadow
On Fri, 2002-04-12 at 12:13, Peter Robins wrote: On Friday 12 Apr 2002 17:24, Yuri Gadow wrote: in every case I do live under the impression that the html serializer will create br for you instead of br/ did you check your sitemap? It does not. I just tested this, Yuri (I'm using

My First Cocoon Question!!

2002-04-12 Thread Muhammad Irfan
Dear Cocooners, Hi, I want to use cocoon to query MS Access database and want to get the query results in xml as output. I have setup the database driver in web.xml init-param and have made all satisfactory changes. The only decision problem i am facing is that should i write xsl file