If your servlet inherits from HttpServlet you have to override
getLastModified() to enable conditional GETs and caching.
HTH
Guido
jr schrieb:
I have done this by have a file handler request a url which is a servlet
generating xml.
However i cant seem to get this cached, and so i continue
Where can I find the Java code C2 generates for my XSP pages?
Med venlig hilsen/Best regards
Søren Neigaard
System Architect
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email:
I would rather tell that Cocoon2 is not user friendly,
especially concerning error messages
Just one valid change to sitemap.xmap can bring you
to mysterious
java.lang.RuntimeException: No more DTM IDs are available
with no clue to the cause of the problem
Even when you roll back your
in tomcat, this is in TOMCAT_HOME/work/your_webapp
hth,
tomK
-Original Message-
From: Søren Neigaard [mailto:[EMAIL PROTECTED]]
Sent: maandag 26 november 2001 18:30
To: [EMAIL PROTECTED]
Subject: Where can I find the Java code generated by Cocoon2
Where can I find the Java
Soren,
look under
$tomcat_home\work\localhost_8080%2Fcocoon\org\apache\cocoon\www\something
else
The something else being dependent on your particular sitemap and
sub-sitemaps.
To look for every generated Java file, just type (provided you're under
Windows): dir
Alex,
have your already taken a look at the log files ? There are plenty of
information there. These files are, by default, under:
$tomcat_home\webapps\cocoon\WEB-INF\logs
best regards,
-
Luca Morandini
GIS
On Sun, 25 Nov 2001, Mark S. Kent wrote:
Sorry if this is off-topic, but I didn't see an FOP User list, just a
Developer one, so let me know if I need to ask this question over there.
Is there a command in Apache's FOP to rotate the page by 90 degrees to get a
landscape orientation for PDF?
log files display exactly the same deem information
as I see on the error web-page:
About this DTM IDs and the whole this list of exceptions.
I don't know how chnage it programmatically
I just suggest to make the error reporting more friendly...
... from web-master point of view...
with
I have had this problem before also. I found that if you wait a few
minutes and then try refreshing the page in your web browser it comes
out with a different error message or if you restart the server and
refresh the web browser. It is usually something to do with c2 not being
able to access a
This may be the cause - since I keep sitemap.xmap open and
make changes while checking the reaction of Cocoon2 to these
changes.
But sorry,
1) how could I find this out from the error message?
2) sometimes it is able to read the file which is open in another
application.
Cocoon2 is a great
Relax, remember it is still in release candidate versions.
-Original Message-
From: Alex Kachanov [mailto:[EMAIL PROTECTED]]
Sent: Monday 26 November 2001 08:55
To: [EMAIL PROTECTED]
Subject: RE: general note about Cocoon
This may be the cause - since I keep sitemap.xmap open and
If you stop tomcat, delete the files in WEB-INF/db, and restart,
everything works fine. The error is not tied to your sitemap, and is
documented on the website. (I think there is a better solution on the
website for those who are using the files in WEB-INF/db and do not wish
to delete them.)
I did it with the Resource-Exist Action. It works !
Thanks for your help
map:match pattern="**.pdf" map:act type="resource-exists" map:parameter name="url" value="resources/pdf/{1}.pdf"/ map:read src="resources/pdf/{../1}.pdf" mime-type="application/pdf"/ /map:actmap:redirect-to
Thank you Jörg
I had it on a wrong position (inside a template match). There's no more compiling error but the include itself doesn't seem to work. I'll try import.
In the sitemap I have the foolwing for the include file:
map:match pattern="nav_tabs.xsl" map:read
Take a look at web.xml to set the work dir.
From: Søren Neigaard <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: Where can I find the Java code generated by Cocoon2
Date: Mon, 26 Nov 2001 09:30:06 -0800
Where can I find the Java code C2 generates for my XSP
Hi,
I am getting this error and I have seen this problem mentioned a few
times in the mailing list archives but haven't seen a solution.
This is my configuration:
Mandrake 8.1
The combined download of JBoss 2.2.2 and Tomcat 3.2.2
Cocoon 2.0rc2
and Java HotSpot(TM) Client VM
I was wondering if anyone had successfully set up MYSQL to work with C2
under Tomcat 4.0.1? If you can you please send me lengthy and detailed
instructions as to how to do it please. I'm going insane trying to
figure it out.
Thanks for your time
Sharat Koya
Does anyone know how to pass through markup symbols from a a Database
Field so that they do not appear in the output [HTML] file as lt; but
rather function as the tags they were intended to be - e.g. so that a
database field with:
my name br/ your name
appears as:
my name
your name
PS Am
Does anyone know how to pass through markup symbols from a a Database
Field so that they do not appear in the output [HTML] file as lt; but
rather function as the tags they were intended to be - e.g. so that a
database field with:
my name br/ your name
appears as:
my name
your name
PS Am
Derek,
what about using disable-output-escaping=yes in your xsl:value-of ?
Just like in:
xsl:value-of disable-output-escaping=yes
select=//sql:rowset/*[name(.)=$dbcol]/
Anyhow, this works with SQLTransformer... no idea with ESQL.
Best regards,
xsl:import is working fine
From: "Beat De Martin" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: xsl:include not allowed ?
Date: Mon, 26 Nov 2001 09:09:06
Get your FREE download of MSN Explorer at http://explorer.msn.com---BeginMessage---
Thank you Jörg
Hi, a major update of DBPrism has been released, and one point
of great interest is its integration within Cocoon :
.. one of the most astonishing success stories of Java, Oracle and
Open Source co-operation. This is DB Prism (or the project formerly
known as OWSKiller). Originally created
Luca
Not sure about your syntax - the ESQL sits in a XML file (not an XSL
file), so I am not sure that xsl:value-of
disable-output-escaping=yes will work there?
The syntax currently looks like:
!-- logic section --
xsp:logic
fName=esql:get-string column=Name/;
/xsp:logic
!-- xml wrapper --
Found it, thx :)
-Oprindelig meddelelse-
Fra: Luca Morandini [mailto:[EMAIL PROTECTED]]
Sendt: 26. november 2001 00:40
Til: [EMAIL PROTECTED]
Emne: RE: Where can I find the Java code generated by Cocoon2
Soren,
look under
Luca
Not sure about your syntax - the ESQL sits in a XML file (not an XSL
file), so I am not sure that xsl:value-of
disable-output-escaping=yes will work there?
The syntax currently looks like:
!-- logic section --
xsp:logic
fName=esql:get-string column=Name/;
/xsp:logic
!-- xml wrapper --
Derek,
just try to put the disable-output-escaping into the XSL which
takes care of transforming the value element into HTML.
Best regards,
-
Luca Morandini
GIS Consultant
[EMAIL PROTECTED]
I will be out of the office starting 11/26/2001 and will not return until
11/28/2001.
I will respond to your message when I return.
-
Please check that your question has not already been answered in the
FAQ before posting.
Hi,
I used cocoon2 beta version 1 to develop a website, and now i need to upgrade it to
cocoon2
release version 1. I have tried to upgrade, but after the upgrading, the aggregation
part not
shown. Any idea ?
Include here with are the sitemap.xmap and 1 action java file.
1) sitemap.xmap
I think there is also a proprietary pipeline processor:
"ATG Dynamo" from http://www.atg.com
But I am not really sure if it's really a pipeline processor.
Anyway, we are organizing in March 21-22 a conference
on Open Source Content Management Systems where you will hear
a lot about pipeline
Hello,
I'm trying to execute a jsp page from within Cocoon.
The page is defined in the sitemap.xmap as:
map:match
pattern="jsp/*.jsp"map:read type="jsp"
src="/docs/jsp/{1}.jsp" //map:match
and every thing went fine except when I added the
line:
jsp:forward page="quote.jsp"/
I had this
I am using those pieces in my project. The source to my (unfinished)
project can be found at
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/wpigdc-cms/cms-main/.
This might be what you're looking for; I'm not using ESQL or anything,
but rather, JDBC through a transformer.
Liam Morley
Ok, guys, we have svg2jpeg, svg2png
How about svg2gif? Any clues?
with best wishes
Alexander Kachanov
-
Please check that your question has not already been answered in the
FAQ before posting.
I think the problem is the patent from Unisys.
But I do not know if it's just the compression algorithm (LZW).
You have to ask (or better search the mailing lists) for it at the batik
forum as Cocoon just uses the offered transcoders.
I'm interested in it, too, and have written such an
In my logicsheet i must use java.uitl.Calendar in import.
How i can include it in basic xsp, from which my logicsheet called?
do i must write something like this in logicsheet:
xsl:template match =ratty:xxx
xsp:page
xsp:structure
xsp:includejava.util.Calendar/xsp:include
/xsp:structure
page
I will be out of the office starting 11/26/2001 and will not return until
11/28/2001.
I will respond to your message when I return.
-
Please check that your question has not already been answered in the
FAQ before posting.
Hold the phone. I think the problem was further up in the file with a
missing $ on a variable of the same timetype name. I fixed that and it
worked just fine.
Mark
-Original Message-
From: Mark S. Kent [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 10:00 AM
To: [EMAIL
Can you be more accurate on the problem you have gotten??
I have two working installations:
- MySQl + C2 + Tomcat 4.0.1 + win2k + jdk 1.4 beta2
- MySQL + C2 + Tomcat 4.0.1 + XP + jdk 1.4 beta2
and both are working, but i had to reinstall it a few times with the
specific jvm ( the
I used the source from cvs.
Regards,
--mike
On Thu, 22 Nov 2001, Stephan Michels wrote:
On Tue, 20 Nov 2001, Michael McKibben wrote:
Ahh yes you are correct. I've been using a modified XInclude transformer
that uses a custom URI class to better handle uri's supplied via the href
I'm using 2.0rc1, but even if I put label=xsltran into generator...
declaration this doesnt work either...
I feel that I misundersatnd the concept. It seems, for example, in webapp
sitemap.xconf (in HEAD branch) the view declaration like:
map:view name=links from-position=last
map:serialize
Here is my confusion sources compiled with Cocoon2 CVS HEAD branch.
It seems that in this really simple case View MUST work, but it doesnt - I'm
still getting welcome1.xsl transformation.
I feel that I missed something big.
Thanks for help,
Alex.
- Original Message -
From: Alexander
In my logicsheet i must use java.uitl.Calendar in import.
How i can include it in basic xsp, from which my logicsheet called?
do i must write something like this in logicsheet:
xsl:template match =ratty:xxx
xsp:page
xsp:structure
xsp:includejava.util.Calendar/xsp:include
/xsp:structure
page
On Mon, 26 Nov 2001, Alexander Smirnoff wrote:
I'm using 2.0rc1, but even if I put label=xsltran into generator...
declaration this doesnt work either...
I feel that I misundersatnd the concept. It seems, for example, in webapp
sitemap.xconf (in HEAD branch) the view declaration like:
OK. I've got it.
Well, is it possible to trigger the view from inside sitemap? What about
Passing parameters?
I think the idea of breaking pipeline and continuing it from another
resource-like pipeline (view) from labeled predefined point is very
powerful. Imagine having the same long chain of
On Mon, 26 Nov 2001, Alexander Smirnoff wrote:
OK. I've got it.
Well, is it possible to trigger the view from inside sitemap? What about
Passing parameters?
I think the idea of breaking pipeline and continuing it from another
resource-like pipeline (view) from labeled predefined point is
I will be out of the office starting 11/26/2001 and will not return until
11/28/2001.
I will respond to your message when I return.
-
Please check that your question has not already been answered in the
FAQ before posting.
OK. Then how could I implement dynamically look-and-feel based on user
credentials (customer-id, user_id) ? I see only one possible way: inserting
action for each XSL transformation in each pipeline... That approach makes
sitemap look even more ugly...
Comments are follows,
Alex.
- Original
Please don't screw up threading by replying to a message when you don't
mean to keep on that topic.
You're probably hitting the syntax change for cocoon: URLs. Please look
at the aggregation examples in the sample applications.
On Mon, 2001-11-26 at 11:52, Ling Kok Choon wrote:
Hi,
I
I will be out of the office starting 11/26/2001 and will not return until
11/28/2001.
I will respond to your message when I return.
-
Please check that your question has not already been answered in the
FAQ before posting.
Hi,
Can any one help me in doing
this. I get a piece of XML data as a request attribute forwarded from a servlet.
In my xsp page i have to attach that. here is the code snippet
pagebodyheadingdynamic/headingxsp:logicString
xml = (String)request.getAttribute("xml"); ( This will return a XML
Is it possible to merge somehow the stylesheets in C2?
I have several stylesheets for different types of devices/browsers.
Those stylesheets have some common parts.
Is it possible to keep those common part just in a sinlge stylesheet
(so I would need to make changes to this stylesheet only) and
Yes, it is possible. In my apllication I do it this way
The common parts are grouped in one stylesheet named
forAll-html.xml (like JavaScript, styling of header, footer, toc)
All other stylesheets can use the templates inside this stylesheet.
?xml version=1.0?
xsl:stylesheet ...
On Tue, 27 Nov 2001, Alex Kachanov wrote:
Is it possible to merge somehow the stylesheets in C2?
The samples xsp that comes with Cocoon does exatly this. Have a look into
it.
Giacomo
I have several stylesheets for different types of devices/browsers.
Those stylesheets have some common
On Mon, 26 Nov 2001, Alexander Smirnoff wrote:
OK. Then how could I implement dynamically look-and-feel based on user
credentials (customer-id, user_id) ? I see only one possible way: inserting
action for each XSL transformation in each pipeline... That approach makes
sitemap look even more
53 matches
Mail list logo