Aurélien DEHAY wrote:
Bonjour.
Je cherche a créer un cookie dans un flowscript. Il y a bien l'api
décrite, mais nul part je ne trouve d'exemple.
Quelqu'un saurait-il comment faire?
Il faut bien sûr que je trouve peu de temps après avoir demandé.
Pour les curieux:
var truc =
Bon, finalement, je nage un peu.
Je créé le cookie, donc:
var machin = cocoon.response.createCookie(myotis,generateCookie());
J'ai un beau cookie, mais je voudrais changer le maxAge. Comment je
fais? J'ai essayé machin.setMaxAge(1), ça ne fonctionne pas. Quelqu'un
saurait ça?
--
Aurélien
Dear all,
I'm refering to the registration example within the
CForms samples block (Cocoon, 2.1.6).
I'd like to check database access privilege of the
user. Usually I would have done this within flowscript
through java class calls.
Now, as I've learned, it is also(?) possible to do
validation
Hi,
I have some actions which make some modification (update, commit or
rollback) in my SQL database.
My trouble is that if the update failed I need to do a rollback. But if
another user uses the table in which I am making modification, he will
loses his changes if I make a rollback.
So there
On Fri, 11 Feb 2005 12:05:51 +0100, Sandor Spruit [EMAIL PROTECTED] wrote:
I am working on a Cocoon demo, but I'm not sure whether there will be a
connection to the Internet when the demo takes place.
Is there a smart solution to somehow cache on-line content, just in case
the network
I am working on a Cocoon demo, but I'm not sure whether there will be a
connection to the Internet when the demo takes place.
Is there a smart solution to somehow cache on-line content, just in case
the network connection is not available on the 'moment supreme'?
Another solution is to
Hi,
I am about using MySQL database in Cocoon, My question is,are there any configurations should I do before using the MySQL DB?
I am using the Cocoon version 2.0.4
Many thanks,
Fadi
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
do you want just to run your cocoon based demo offline or your demo
require online data that come from somewhere ?
in first case you dont need to cache nothing, you have just to setup your
demo in a machine where your demo will take place (just copy)
On Fri, 11 Feb 2005, Markus Vaterlaus
On Fri, 11 Feb 2005, fadi qutaishat wrote:
Hi,
I am about using MySQL database in Cocoon, My question is, are there any
configurations should I do before using the MySQL DB?
you need just a driver and the right connection string
Hi fadi,
Those
links should help you to learn more about DB using Cocoon as framework.
http://cocoon.apache.org/2.1/developing/datasources.html (introduction about DBs)
more detailed information about drivers here:
http://wiki.apache.org/cocoon/DatabaseConnectionOverview
and
I receive build successful, and get a war file and a webapp folder. Neither
contains the API folder. When I deploy the build to Tomcat Cocoon 2.2
doesn't function. That's where I'm puzzled. I will keep trying. Note, I have
successfully built and deployed Cocoon 2.2 in Debian based ProMEPIS Linux.
I remembered how I got the build to work in Debian based ProMepis Linux by
making changes to certain files so anything that needed Java (Cocoon build,
Tomcat, etc.) could use Java 5 (1.5). I tried some things in Windows and
still have problems. So at least I know my problems are Windows related
Sorry in advance if this duplicates a suggestion already made.
Did you try modifying the init-build.xml file to change the target?
That is what we had to do when we were getting that error.
Specifically, I updated line 156 and 182 of init-build.xml (in
cocoon-2.1.6/tools/targets) to say:
Hi there,
During my installation of xreporter 1.2, I am asked to install cocoon 2.0.4
with
tomcat 4.1.x. So I downloaded cocoon 2.0.4 source package and built it with
Sun's
j2sdk-1.4.1-05 and put it under tomcat 4.1.31.
However after I re-started tomcat and went to
http://localhost:8080/cocoon,
Hi,
Here is my puzzle :
I'd like to initialize an object (to access a database) only when a user
get his connection granted.
And then, I want to release the object when the session is finished.
Obviously, The created object should handle multiple users.
Is there any aboject defined in Cocoon as
Dear All,
I am creating a few cocoon applications which have common patterns. I
have created a common sitemap and a number of sub-sitemaps. The
sub-sitemaps are able to access all the components defined in the common
sitemap, however if I try to call a resource which is defined in the
common
I made the two line changes you recommend, still no successful build in
Windows using Java 1.5. Not a major problem for me. I have a successful
build in Linux. I will simply copy the war file from the Linux machine to
the Windows machine.
Gary
-Original Message-
From: Martinson, Theresa
Hello,
I have problem with non-english characters...
I'm doing transformation of XML to HTML
I need to have as a final resultin the HTML strings of this kind:
österreichischen
instead i get string of this kind
ouml;sterreichischen
which is not desired
I guess it is some sort of
Hi,
I am new to Cocoon. Have to support Cocoon apps
of people who are no longer available.
Getting the following exceptions in Cocoon'e error.log:
java.net.SocketException: Broken pipe
Could somebody please interpret them for me:
What might be causing it ? How to fix it ?
It's Cocoon 2.0.4
hi Any
first try do set disable-output-escape=yes
in your xsl files
..
xsl:value-of select=@title disable-output-escaping=yes/
..
then set UTF-8 as default encoding in your serializers (xml, html)
map:serializer logger=sitemap.serializer.html mime-type=text/html
name=html pool-grow=4
On Vie, 11 de Febrero de 2005, 4:41, Lionel Crine dijo:
Hi,
I have some actions which make some modification (update, commit or
rollback) in my SQL database.
My trouble is that if the update failed I need to do a rollback. But if
another user uses the table in which I am making
FYI
--
Stefano.
---BeginMessage---
Lunedi' 21 febbraio, ore 10, Aula 28 (edificio A piano Terra)
Area della Ricerca di Pisa - Via G. Moruzzi, 1
Seminario IIT-CNR
Solving your web needs with Apache Cocoon
10-11
Introducing Apache Cocoon
In this first part, we'll introduce the Apache Cocoon web
I'm doing my first real cocoon project, and have things
working the way I want, but it seems a bit convoluted, and I wanted to just run
it by the folks here to see if I'm missing something obvious.
The problem:
The client wants a folder of xml files, each file
representing one member
After several hours lost at reviewing my form definition code, I found
that most Cocoon samples actually define validation buttons id as
submit.
Hence, it seems to be a common source à troubles. In my case, a
Javascript message form.submit() is not a function was logged into
the console.
Maybe you want to have look at xpath directory generator. it let's
you create a huge xml file out of any xpath expression performed on
any number of xml files in specific directory. Doing so, you will get
a new cachable xml-file (depends on your sitemap configuration) with a
lot of additional
Running off-line:
There is a light-weight installation of Cocoon. Try building with argument 'standalone-demo'. This
will give you a standalone-demo folder and a webapp folder. Put them anywhere you like but next to
each other and start with 'cocoon.bat servlet' (or .sh for the unix users among
Antonio Gallardo wrote:
Can you post some of them? I cannot wait to see them! ;-)
here is the first one:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33523
take a look at the code to see what i mean when i say it should not be
used, and that's just the relatively harmless databaseReader..
i
Title: How might I do this in Cocoon?
I was wondering if there was a way to do this in Cocoon.
I have a java servlet that queries a database and produces xml. Part of this includes translating some of the data, like product numbers, using a HashMap. The HashMap is built from an xml source
Hi Michael,
How large is large? Could you give file size and number of entries?
Reading it using DOM takes about 10 times as much memory as in file size. So trying to avoid that
could be one concern.
On the other hand, perhaps the HashMap implementation is not efficient enough for your needs. I
On Vie, 11 de Febrero de 2005, 10:01, Gregor J. Rothfuss dijo:
Antonio Gallardo wrote:
Can you post some of them? I cannot wait to see them! ;-)
here is the first one:
http://issues.apache.org/bugzilla/show_bug.cgi?id=33523
take a look at the code to see what i mean when i say it should
Hi Aurelien
Try machin.maxAge = maxAgeInSeconds;
maxAge is a property of the cookie object, not a function.
Cheers,
Adam
-Original Message-
From: Aurélien DEHAY [mailto:[EMAIL PROTECTED]
Sent: Saturday, 12 February 2005 9:38 a.m.
To: users@cocoon.apache.org
Subject: Cookie in
Hi Lionel
I have a class AbstractDB, an Avalon component, that manages the lifecycle
of a connection.
It implements these Avalon interfaces: Initializable, Disposable,
Recyclable, Serviceable.
In initialize() I look up the datasource:
ServiceSelector selector = (ServiceSelector)
Hi Geert,
The file is huge: ~280 M. Number of entries ~164 K. If I just try to
pass the file through Cocoon, I run out of Memory. :-)
The HashMap implementation is working fine. It just takes a while to
load, but after that I'm ok.
Regards,
Mike
-Original Message-
From: Geert
Hi Mike,
Hi Geert,
The file is huge: ~280 M. Number of entries ~164 K. If I just try to
pass the file through Cocoon, I run out of Memory. :-)
Only when you build a DOM. If you would stream it, it shouldn't be a problem. Though, make sure
Cocoon won't try to cache the result!
:-D
The HashMap
Mike Lopke wrote:
I have a java servlet that queries a database and produces xml.
Part of this includes translating some of the data, like product
numbers, using a HashMap. The HashMap is built from an xml
source and is very large. Populating it takes a long time so I
set it up using
Markus Vaterlaus wrote:
Maybe you want to have look at xpath directory generator.
I agree. That's a good solution.
The reason that xslt document('foo.xml') is no good is that the
CacheValidity of the XSLT transform does not depend on the calls it makes to
the document() function. This is a
36 matches
Mail list logo