RE: how to implement a dynamic sitemap?

2001-10-25 Thread Liam Morley
Like many have said, actions work. Also, I usually do the processing in the XSL, so when dealing with "what request gets what what XSL", it's possible to have ALL requests go to the SAME xsl. Of course it depends on your demands.   Liam Morley   -Original Message- From: Christe

Re: AW: Help! How can I call my xsp page from HTML document?

2001-10-25 Thread Jeremy Aston
Victor, Thats correct.  The documentation (in the FAQ) and cTwIG both say how you can get C2 requests served via an apache-tomcat-cocoon route.  The documentation adds some stuff about how to do things like http://locahost/myc2app etc although there have been a number of questions about this on th

Struts And Cocoon

2001-10-25 Thread Harden ZHU
Hi, I am new to cocoon. Is there possible to intergate cocoon and strust together? thanks Harden - Please check that your question has not already been answered in the FAQ before posting.

C2 and mysql

2001-10-25 Thread Olivier MOUGEL
Hi all, I'm using mysql with php without great problem but I want to investigate the power of XML et Cocoon. My problem is that my data is stored under an DBMS !!!   I want to get a connection between cocoon and mysql using xsp. Is somebody using this to explain in few steps what I have to c

SQLException - please help

2001-10-25 Thread chris yeung
  I am a new user to Cocoon 2.0. Here are what I have: - Cocoon-2.0rc1a Tomcat-4.0.1 jdk1.3.1 Windows 2000 Professional   - I have installed Cocoon perfectly including hsql - Starting http://localhost:8080/cocoon and I can

[c2]hooking a generator to transformer pipeline?

2001-10-25 Thread Bob Phillips
I'm making a generator extending ComposerGenerator that parses a text file and emits sax events using a contentHandler driven by a custom parser. The generator spits the xml ok, but dies when I add a stage to the pipeline, saying problem in getTransformer - error in creating Transform Handler I

[C2] using HTML "nowrap" in a

2001-10-25 Thread Mark S. Kent
This is weird. I just tried putting a "nowrap" param to my tag in my XSL file like this: to prevent the table cell in HTML from wrapping and got this error on the screen: Error creating the resource Failed to execute pipeline. and in the log: org.xml.sax.SAXParseException: Attribut

Re: Help needed Passing Parameters

2001-10-25 Thread Christian Schmitt
Phil, I would change your XSP to this: http://apache.org/xsp"; xmlns:xsp-request="http://apache.org/xsp/request/2.0"; xmlns:xsp-response="http://apache.org/xsp/response/2.0";> String person = null; The favorite colour page - Yay"

SQL-Statment with two (or more) "where" statments

2001-10-25 Thread Schroeter Christian
Hi, i use cocoon1.8.2. Now i have a little problem: i want to query my db like this: ... ... SELECT a.name FROM a, b WHERE b.fk2 = a.pk

RE: C2: esql:if-null

2001-10-25 Thread Mark S. Kent
Well, to reply to my own message, I didn't find any mention of additional "is-null" commands like "is-null-true" or "is-null-false" in the esql.xsl page, but I was able to get my code to use the "is-null" returned Java boolean value in an block to determine whether I should concat the LocationNum

Re: how to implement a dynamic sitemap?

2001-10-25 Thread Sergio Carvalho
Christer Lindh wrote: > As far as I've understood C2, there is now a quite static sitemap > which tells what request gets what XSL. This is too static for my > needs, I would like to do a bunch of calculations and then decide on > what XSL to use. Is there any way I can accomplish this with C2

[C2] internal server error HELP!!!

2001-10-25 Thread sergi
i just added my action in cocoon, build it again, and restart server... and got this message: org.apache.cocoon.ProcessingException: Exception in Handler:org.apache.avalon.framework.component.ComponentException: Could not set up Component for hint: org\apache\cocoon\www\sitemap_xmap i added act

Delay in mailing list ???

2001-10-25 Thread Lajos Moczar
Hi folks, I'm getting up to a 7-hour delay in receiving posts to this list. Is it just me or is everyone having problems? Regards, Lajos - Please check that your question has not already been answered in the FAQ before posti

RE: date-format in cocoon 1.8.2

2001-10-25 Thread Mark S. Kent
I was mistaken... the and do work (in C2) to return a "empty" value if the date or time is null. I found that my error I was getting was because the column name I was referencing was not in my ESQL query (DOH!). Sorry about that. Mark -Original Message- From: Faulkner, Perry [mailto:

Re: Help needed Passing Parameters

2001-10-25 Thread Martin Man
hi, your example is not going to work at all, ..., i suggest you to take a look at java source code generated from xsp page, this code is located somewhere in tomcat/work/localhost*/cocoon/org/apache/www/...your_xsp.java, you'll find there that element and Java variable person are cmple

Re: Cocoon2 Release Candidate?

2001-10-25 Thread Lajos Moczar
Brent, In my experience, anything over and including 2.0rc1a works better with JDK 1.3.0/1. I don't know what your exceptions are, but I run Cocoon2 rc1a with Jdk 1.3 in production on several different OSs without problems. Lajos galatea.com Brent L Johnson wrote: > I've been using Cocoon 1

RE: Help needed Passing Parameters

2001-10-25 Thread Valdas Rapsevicius
sorry, but can't help You. This trick with didn't work for me too. You took to selectedPerson just a value of document('people.xml',.)/people/person[name='$person'] node, but not entire node... As I noticed nobody succeded in passing a node as variable or param. If somebody di

Re: How to deploy my cocoon project ?

2001-10-25 Thread Lajos Moczar
in server.xml. Works for me. Then use Apache on top of Tomcat, if you want to remove the Tomcat port from your URL. Lajos galatea.com Eduardo Godoy Vega wrote: > OK, > but I don't want to put my project inside %TOMCAT_HOME% tree ... 'cause I > delete it from time to time ... (re-build the

esql logicsheet get-column-name column=?

2001-10-25 Thread Roger I Martin PhD
Hello,   I am new to Cocoon. Using version 2.   I am trying to use the esql:get-column-name template and am having difficulty supplying the numerical index.     causes   java.lang.NumberFormatException: sun.tools.javac.Main has been deprecated.   Also I want to supply an index variable like  

Re: how to implement a dynamic sitemap?

2001-10-25 Thread Piroumian, Konstantin
Simply use an "action" to do your calculations then return the result to the sitemap:                               Syntax is not exact, but you can easily understand what I mean if you take a look at the sample sitemap.   Regards,     Konstantin Piroumian - Original Messag

C2 and Xfrom

2001-10-25 Thread Max Larsson
Hi, has anyone expierence with xforms and c2 ?? Max - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]

trying to access session object

2001-10-25 Thread Henrik Hofmann
  Hi , I’m trying to access the session object under cocoon2 rc1.   My xsp code looks like this,   version="1.0" encoding="ISO-8859-1"?>  

Re: how to implement a dynamic sitemap?

2001-10-25 Thread Martin Man
On Thu, Oct 25, 2001 at 12:03:06AM +0200, Christer Lindh wrote: > As far as I've understood C2, there is now a quite static sitemap which tells what >request gets what XSL. This is too static for my needs, I would like to do a bunch of >calculations and then decide on what XSL to use. Is there a

Re: how to implement a dynamic sitemap?

2001-10-25 Thread Mario Muja
You can write your own actions, which return a value to the sitemap. This value can be used within the sitemap to decide, which XSL to use. In C2 you do not have to change your XML files to assign a stylesheet. This is handled dynamically by the stylesheet. From this point of view, I would s

Re: date-format in cocoon 1.8.2

2001-10-25 Thread Mario Muja
I can see your earlier mail but it has not arrived completely. The mail body is empty. Anyway: I don't know a solution to your problem. Mario - Original Message - From: "Mark S. Kent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 11:34 PM Subject: RE: date

[C2.0rc1] Exception when redirecting during pipeline processing

2001-10-25 Thread Adrian Geissel
Hi,   My question relates to breaking out of a pipeline after the generate stage has completed. Specifically, the generate stage performs some processing as XSP, and based on the success/failure of this processing, the pipeline is allowed to continue, or 'breaks-out' using a redirect. When I

Re: Choosing XSL dynamically

2001-10-25 Thread Mario Muja
What about using xsl:include to include a calculation template in both of the other stylesheets? Mario - Original Message - From: "Mark S. Kent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 5:44 PM Subject: C2: Choosing XSL dynamically I noticed a messag

Re: VerifyError?

2001-10-25 Thread jose . camacho
we had the same problem yesterday. We think we were using new libs instead of old ones. We got these libs again and all went ok. We change it to use directly FOP. Try to use the same libs getting them from cocoon web-inf/lib. Regards. José Blas. -

AW: Help! How can I call my xsp page from HTML document?

2001-10-25 Thread Skladov, Victor
Hi Jeremy! Thanks for the suggestion. I've done so and it runs although there's a modul mod_jk under Apache that can take this task (I mean communication between Apache and Tomcat) and I'm going to test it. Thanks one more time! Regards, Viktor -Ursprüngliche Nachricht- Von: Jeremy As

probleme cocoon2 tomcat4

2001-10-25 Thread Alexandre Bauer
Title: Message Cocoon 2 - Internal server error type internal-server-error message The sitemap handler's sitemap is not available. description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. sender org.apache.cocoon.servlet.CocoonServlet source Coco

Re: xml-schema / validate forms

2001-10-25 Thread Martin Man
On Wed, Oct 24, 2001 at 10:40:07AM +0200, Kenneth Petersen wrote: > Hi all! > > I was wondering why efforts have been made to generate and maintain the >FormValidatorAction. Why not just use xml-schemas and xml-validation to validate >input from froms? > the effort was put there (by me as the

JNI panic: JNI received a null string

2001-10-25 Thread Andrés Padilla
i have just intalled my cocoon 2 with tomcat 3.X, following all the steps form de installing document and when i type in my browser: localhost:8080/cocoon tomcat fails throwing this menssage: any idea? JNI panic: JNI received a null string     at java.lang.ClassLoader.findLoadedClass(Native M

Re: Cocoon 1.8.2 and jakarta-tomcat-4.0.1

2001-10-25 Thread Truong,Hoang C.
I did copy all the cocoon jars to $TOMCAT_HOME/common/lib. I changed the text conf/cocoon.properties to WEB-INF/cocoon.properties in $TOMCAT_HOME/webapps/cocoon/WEB-INF/web.xml by Installing instruction. In tomcat-3.2.x, there is mod_jk.conf which we can add these lines to serve cocoon. How c

Upload file... working exemple?

2001-10-25 Thread Tiberiu Dondera
Does anybody has a working exemple of a file upload with cocoon2 using com.oreilly.servlet.MultipartRequest? I'm getting org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling upload_xsp: Line 288, column 31: Class java

Help needed Passing Parameters

2001-10-25 Thread Phil Blake
I am missing something when it comes to getting and passing request arguments. I've looked at the cocoon examples, and although my test example appears to match the cocoon one in every way there is obviously something fundamental missing. I think I'm pretty close. :) If anyone could help me ge

how to implement a dynamic sitemap?

2001-10-25 Thread Christer Lindh
As far as I've understood C2, there is now a quite static sitemap which tells what request gets what XSL. This is too static for my needs, I would like to do a bunch of calculations and then decide on what XSL to use. Is there any way I can accomplish this with C2?   I have my own producer t

RE: date-format in cocoon 1.8.2

2001-10-25 Thread Faulkner, Perry
Hi Christian, These comments apply to Cocoon 2, but the generated java code checks for a null value and returns "", otherwise it uses the SimpleDateFormat to convert the date. You might look at your generated code to see if it is doing the same thing. Maybe this was added for Cocoon 2. Anyway, if

xalan2 and cocoon 1.8?

2001-10-25 Thread Christer Lindh
I bet this is a "faq"...   Is it possible to use Cocoon 1.8.3(?) with Xalan2?

RE: date-format in cocoon 1.8.2

2001-10-25 Thread Mark S. Kent
Christian, I'm trying the same thing and tried to wrap the call with an . If that is the only command: none it works just fine when the value is null, but I can't find the correct "syntax" to use for the command if the value is NOT null. Because otherwise I want to get the time value..

RE: How to deploy my cocoon project ?

2001-10-25 Thread Luca Morandini
Eduardo, provided you use Apache, you can hide "cocoon" as much as you like with mod_rewrite. This solution is the one which lets your configuration unchanged. There is a FAQ entry on it. Best regards. - Luca Morandini

VerifyError? (continued)

2001-10-25 Thread Ben Young
My jdk version is 1.3.0_02. Thanks, Ben - Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additio

VerifyError?

2001-10-25 Thread Ben Young
I saw a similar problem to the one I'm having in one of the posts a few days ago. I'm running RedHat 7.1, Tomcat 3.2.2, Apache 1.3.20, and Cocoon 2.0rc1. Here's the error I'm getting: ERROR (2001-10-23) 17:02.58:684 [cocoon ] (/cocoon/) Thread-39/Handler: Error compiling sitemap java.lang.