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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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]
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,
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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/
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
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
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
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
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
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.
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.
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
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
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
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
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
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
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
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
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)
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
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
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
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,
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
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
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
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
65 matches
Mail list logo