A bit off-topic, but:
A good method is using a SHA-Hash of the password like this:
public static String encryptPassword(String pstrPassword) {
MessageDigest sha = MessageDigest.getInstance(SHA);
sha.update(pstrPassword.getBytes());
byte abytHash[] = sha.digest();
Just use a proper encoding for the XML file (i.e. UTF-8) and a UTF-8-able editor
(under Windows i.e. XML Spy or JBuilder). Then you can just type the umlauts as any
other chars in your document without problems.
The HTML Serializer by default will encode them when doing HTML output to iso
You can specify a encoding parameter in the HTML Serializer definition in the
sitemap like this:
map:serializer name=html mime-type=text/html logger=sitemap.serializer.html
src=org.apache.cocoon.serialization.HTMLSerializer
pool-max=128 pool-min=16 pool-grow=16
encodingUTF-8/encoding
Did you try using a amp; instead of ?
i.e. foo?param1=foo1amp;param2=foo2.
Stefan
-Original Message-
From: Barbara Post [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 5:33 PM
To: [EMAIL PROTECTED]
Subject: ampersand
I need a link with 2 parameters in the url :
: Re: ampersand
nope
- Original Message -
From: Stefan Seifert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 5:43 PM
Subject: RE: ampersand
Did you try using a amp; instead of ?
i.e. foo?param1=foo1amp;param2=foo2.
Stefan
-Original
There is another possibility, though a bit out of the scope of cocoon:
Use Cocoon to genrate HTML content that includes a Server Side Include-Statement
(!--#include...--), put a Apache Webserver 2.x in front of cocoon (i.e. using
mod_jk). With proper configuration in httpd.conf of the Apache
of this problem.
Stefan
-Original Message-
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Strange error using JPEG/SVGSerializier under
heavy load -
ClassCastException
Stefan Seifert wrote:
Hello Vadim
Configuration: Cocoon 2.0.3, Tomcat 3.2.3.
We use the SVGSerializer with JPEG-Output to generate graphical menus (we could not
get the customer to use only plain text menus).
All works fine after a starting up tomcat. But after a few days (variing) without even
touching the server the SVG
I can recommend the SPRINTA and OPTA drivers vom inet Software
(http://www.inetsoftware.de/), but they are not free. But they are very stable and
have very good performance, BLOB support etc.
Stefan
-Ursprüngliche Nachricht-
Von: Parrott Geoff [mailto:[EMAIL PROTECTED]]
Gesendet:
Well, this is no problem, done it many times - it is well documented in the Tomcat
documentation: see i.e. tomcat-iis-howto.html from the tomcat 3.x distribution.
For futher questions or problems see tomcat mailing lists.
Stefan
-Original Message-
From: [EMAIL PROTECTED]
But you still have to do most of things on foot which is already built into Cocoon.
The technology is there (well, most of it), but there is now framework nearly
comparable to Cocoon in the MS/.NET-world (yet).
Stefan
-Original Message-
From: Roger I Martin PhD [mailto:[EMAIL
We are using MS SQL 2000 and Cocoon 2 very sucessful in two big
projects.
We bought a JDBC Driver (SPRINTA and OPTA) from inet-software
(http://www.inetsoftware.de).
They are not cheap, but worth the money.
Stefan
-Original Message-
From: Horst Rutter [mailto:[EMAIL PROTECTED]]
Sent:
Try this:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE root [
!ENTITY nbsp #160;
]
root
...
/root
Stefan
-Original Message-
From: Martin Mauri [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 4:51 PM
To: [EMAIL PROTECTED]; Richard Korthuis
Subject: Re: XSL question
Ok,
What you are trying is XSLT 1.1 syntax, that is not supported by this
xalan version as fare as i know.
See http://xml.apache.org/xalan-j/extensions.html for the propietary
xalan extension syntax.
Stefan
-Ursprüngliche Nachricht-
Von: Malay Das [mailto:[EMAIL PROTECTED]]
Gesendet:
Hello Olivier.
I wonder if you developped your own X(HT)ML authoring applet?
I think this is the component that Cocoon is lacking for further
evolutions in CMS applications.
Q42.nl plans to open-source version2 of their product.
XXE is a GREAT editor, but license is quite hard to manage
We developed in a big project roughly spanning the past 1,5 years a
Java-based Web Content Management System using Cocoon 2 with
Vignette-Integration.
The result of the first development phase (the live website) you can see
at
http://www.gruene-fraktion.de (german). The System was developed by
snip/
This was discussed several times and the result is: serializers must
be
unaware of environment they running in and always produce same
response
independent of environment state. IIRC, this has to do with the
caching. Implement custom transformer if you want, it can have
parameters.
-
Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 8. März 2002 16:17
An: [EMAIL PROTECTED]
Betreff: RE: How to define custom parameter for map:serialize?
From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
snip/
This was discussed several times and the result
We have written a custom serializer and want to specify a custom
parameter in the sitemap pipeline, not in serializer definition.
This works
map:serializers
map:serializer name=serializerxyz mime-type=... logger=...
src=...
parameter name=param1 value=xyz/
/map:serializer
In most cases this results from running tomcat 3.x and Netscape 4.x at
the same time under NT/W2K.
Solution: Open Task Manager and set the Process Priority for
netscape.exe to low. Unfortunately you have to do this each time you
start Netscape 4.x.
Stefan
-Ursprüngliche Nachricht-
Yes, that is possible. We did it with cocoon and the recent FOP-Releases
(although our tables usually do not span more than two pages). The Table
header is automatically repeated on every page, works quite well.
The reference we used is
http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html
I solved a similiar problem using a XSL stylesheet which only puts a
xml:stylesheet processing instructing in the resulting XML-Stream before
it is send to the browser.
Use a stylesheet like this (i called it add_stylesheet_pi.xsl):
xsl:stylesheet version=1.0
Using XSP Pages and ESQL logicsheet to generate XML Streams results in
putting several namespaces used for internal XSP processing in the final
stream, i.e.:
xmlns:xsp=http://apache.org/xsp;
xmlns:xspdoc=http://apache.org/cocoon/XSPDoc/v1;
xmlns:esql=http://apache.org/cocoon/SQL/v2;
If you write a .NET Service that has an XML-Output via HTTP it should be
easy to integrate this with coocoon (as data producer).
But it think it is nearly impossible at this time to write a real cocoon
generator or serializer with the benefits of SAX Event Processing and
reduced server
Try adding the elements doctype-public, doctype-system in your
sitemap to the HTML-Serializer like the following:
map:serializer name=html mime-type=text/html
src=org.apache.cocoon.serialization.HTMLSerializer
doctype-public-//W3C//DTD HTML 4.01//EN/doctype-public
Hallo Roman.
Did anyone manage to make cocoon2 work with the j2sdkee1.2.1?
1. cocoon2 could not access the jar-files in the WEB-INF/lib dir so I
extracted them all into the WEB-INF/classes dir
Did you try to set the Parameter init-classloader to true in the
cocoon servlet init parameters in
Has anyone further information concerning the MRUMemoryStore-Settings in
cocoon.xconf?
It is commentent in the File, but on several questions i found no
answers:
- Why are there three MRUMemoryStores? One store, one stream-cache,
on event-cache?
- What exactly is cached in store?
- What
Take a look at the generate Java class behind the XSP page - and you
will see the problem. get-xml does not an xml string, but a xml dom
element object (or sax events in cocoon 2). In your second case there
was just the .toString()-Method of org.w3c.dom.Element called.
I can see not much sense
Use get-xml from the esql logicsheet in your xsp pages and the copy-of
XSLT-Command in your XSLT-Stylesheet. See several postings on this issue
in this mailing list. Note that the XML in the database has to be a
well-formed xml document with root node etc.
Stefan
-Ursprüngliche
We use the same configuration (but Tomcat 3.2.3, not Tomcat 3.2.2), it
works fine (though we hat to set the cocoon-parameter init-classloader
in web.xml to true).
Stefan
-Ursprüngliche Nachricht-
Von: Luca Morandini [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 17. August 2001 14:30
Its not a cocoon, but a XSL-Problem. Try the following:
xsl:template match=Member
xsl:for-each select=*
xsl:if test=position()1
xsl:value-of select=$delimiter/
/xsl:if
xsl:value-of select=./
/xsl:for-each
/xsl:template
Stefan
-Ursprüngliche Nachricht-
Von:
MSXML4.0 but
not Cocoon2.
Just wondering so I could identify future instances that are similar.
Thanks again.
-Original Message-
From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
Sent: August 13, 2001 8:19 AM
To: [EMAIL PROTECTED]
Subject: AW: Why doesn't Cocoon2 recognize [position
An: '[EMAIL PROTECTED]'; Stefan Seifert
Betreff: RE: Why doesn't Cocoon2 recognize [position() lt; last()] ??
Thanks for the reply. Actually, the XSL is valid and it should work
according to the W3 Recommendations. The only conclusion left
is that there
is a bug in Cocoon2, which is what
: Stefan Seifert [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 13, 2001 10:41 AM
To: [EMAIL PROTECTED]
Subject: AW: XML in database, how to pass to Cocoon?
I have been using Cocoon 1 for a little while and have been
happy with
the
results. Using the browser I can enter a URL
Of course. ancestor is not a function but a integral part of the XPath
specification and fully supportet by the XSLT processor used by Cocoon
2.
Use it like this:
xsl:value-of select=ancestor::NameOfNode/
Look in the XPath specifications for further documentation.
Stefan
-Ursprüngliche
Or, just put a Entity Reference Declaration in your XML document like:
?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE root [!ENTITY nbsp #160;]
root
...
/root
or, you can directly use #160; instead of nbsp; in you XML source
without any further declarations.
Stefan
-Ursprüngliche
-Ursprüngliche Nachricht-
Von: Drasko Kokic [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 18. Juli 2001 11:30
An: [EMAIL PROTECTED]
Betreff: Re: AW: the problem of nbsp
Thanks for your suggestion :-)
Unfortunately, is not exactly same as nbsp;
Drasko
--- Stefan Seifert
Anders Lindh wrote:
Migrating from C1 becomes so much more complicated
when XSP redirects are not available...
I agree. There's no way I can port my old Cocoon1 apps
without redirects
being available conditionally (i.e. depending on user
input). Perhaps
this is possible
Hello.
I've one question concerning pipelines in C2: What is the difference in
using one large pipeline to splitting it up in several smaller
pipelines? I cannot see a differene from the documentation? Any
performance/feature differences?
Is it possible to use parts of one pipeline in another
Hello Ulrich.
Just one point: Most of the workarounds do not work with C2 (did you
ever try them with C2)? The one you described with a content disposition
unlike *.pdf works, but it is not acceptable for the user (who expectes
to open the pdf in the browser window and could not do the
Take a look at my posting from yesterday - [C2] Possible Solution for
PDF Bug with IE 5.x !??. I explained it in detail. Ask me for further
questions.
In my tests a realized big problems because of the lack of
content-length for FOP-generated PDF's. With content-length it worked
quite well.
This
Solution 2:
Generate PDF, save it in temmp PDF file,
redirect User's browser to this file (since content length is known -
no
problems with IE),
delete temp file 1 minute later.
I thought of that too, but how do delete the file 1 minute (or whatever)
later? Is there i simple solution in
I want to include the result of a cocoon transformation as part of
another JSP Page as follows:
... jsp content ...
%
String strIncludeURL = ../cocoon/meeting_agenda.htm?MeetingID=1;
%
jsp:include page=%=strIncludeURL% flush=true/
... jsp content ...
Unfortunately this does not work. If i
I use ESQL and get-xml to get XHTML-Fragments from the database.
The Problem: The XHTML conatins sometimes entities like nbsp;, which
are vaild for XTHML, but not for XML. In an XSL-Stylesheet i can use a
statement like
!DOCTYPE xsl:stylesheet [
!ENTITY % HTMLlat1 PUBLIC
Take a look at the attached Cocoon 2 XSP Page. It uses multiple nested
queries with case switching, custom ordering etc. I'm not sure if its
used as intended from the xsp developers, but it fits perfectly to my
problem.
-Ursprüngliche Nachricht-
Von: Matt Sabourin [mailto:[EMAIL
Hello.
This is my problem: With Cocoon 1 I created a XSP-Page, which builds an
XML-Stream using the ESQL TagLib from a Database. The Path for the XSL
to use was also fetched from the database and applyed using the
following statement:
xsp:pi target=xml-stylesheet
the simple
hello world-Sample still takes a minute or so.
Anyone else encountered this problem? I only installed cocoon 2 as
described in the docs via building the WAR-File and copying it to the
webapps directory.
Stefan Seifert
47 matches
Mail list logo