Re: cocoon book [was: pdf problem]

2002-12-30 Thread Perry Molendijk
> Can you recommend one that is suitable for a beginner like me with some > XML and XSLT and no Java knowledge? Don't know about books but this tutorial on XSL:FO is pretty good: http://www.antennahouse.com/XSLsample/XSLsample.htm And have a look in the links section of the Cocoon doco. Perry

Re: pdf problem

2002-12-30 Thread Perry Molendijk
>>I opened the folder %PATH_TO_COCOON/WEB_INF/logs but not sure what to >>look for... Anything pointing something not being found. Have a look through all the files in this directory. Restart Tomcat and run any file that works with cocoon and then have a look at the logs, you will get a better un

Re: xsp + parameters

2002-12-30 Thread Jim Bearce
Try something like: result: fac() cyril vidal wrote: Hi, I would like to calculate the factorial of a number via XSP. The number should be transmitted as a parameter via HTTP. The code I've got for this purpose is the following: it retrieves the parameter 'number' and defines a fac meth

Re: xsp:attribute generating a new element instead of an attribute inan already existing element

2002-12-30 Thread Jim Bearce
I believe you would have to do it this way: currentDate while(rsDates.next()) { rsDates.getString(1) } Luís Góis wrote: Could you comment the behaviour below : XSP : === while(rsDates.next()) { rsDates.getString(1) } currentDate generated

RE: Problem Installing Cocoon on Mac OS X

2002-12-30 Thread Astor Rivera
I have compiled Cocoon 2.1dev from source and have a working Cocoon2.1dev- My system: mac osx 10.2.3 java 1.3.1 tomcat version 4.1.12 cocoon 2.1 dev All I did was paste from xml-cocoon2/lib/endorsed xalan-2.4.1.jar xercesImpl-2.1.0 xml-apis.jar xsltc.jar to $TOMCAT_HOME/common/endorsed Everyth

cocoon book [was: pdf problem]

2002-12-30 Thread Ines Robbers
Hi, Many thanks for your reply! * (and get a more recent book). Can you recommend one that is suitable for a beginner like me with some XML and XSLT and no Java knowledge? Cheers, Ines - Please check that your question h

xsp + parameters

2002-12-30 Thread cyril vidal
Hi,   I would like to calculate the factorial of a number via XSP. The number should be transmitted as a parameter via HTTP.   The code I've got for this purpose is the following: it retrieves the parameter 'number' and defines a fac method, that calculates the factorial of its formal parame

Re: Generating invalid url

2002-12-30 Thread Joerg Pietschmann
On Monday 30 December 2002 15:48, you wrote: > How I can check that the supplied url is valid? What's an invalid URL? - URL syntax violated (see http://www.rfc-editor.org/rfc/rfc2396.txt) - hostname DNS lookup failed - server not reachable - content not XML > Does generator throw some error that I

Re: pdf problem

2002-12-30 Thread Joerg Pietschmann
On Monday 30 December 2002 15:34, you wrote: > In case of PDF-creation, Acrobat is starting to load the file but then a > window pops up saying: "The file is damaged and could not be repaired". Most probably the problem is caused by an unhandled exception during PDF rendering, causing the error ap

Re: java.lang.NullPointerException when initializing AbstractSAXSource

2002-12-30 Thread Collin VanDyck
Sorry about the double post guys.  I had emailed from a different account and wasn't sure if it would show up or not, so I resent using the account from which I had registered to the list.   Collin   - Original Message - From: Collin VanDyck To: [EMAIL PROTECTED] S

java.lang.NullPointerException when initializing AbstractSAXSource

2002-12-30 Thread Collin VanDyck
I've got a class that extends AbstractSAXSource.  My class's constructor is called with the parameters:   Environment ComponentManager Logger and others...   The first time that this class is instantiated once the j2ee (Jboss) system has been started, it runs fine.  No problem.   However, s

Re: Url to virtual host - rewrite rule

2002-12-30 Thread Fred Vos
Just found out myself that the following VirtualHost entry works: ServerName www.mokolo.com DocumentRoot /opt/jakarta/tomcat/webapps JkMount /* ajp13 ErrorLog /var/log/httpd/mokolo.com/error_log CustomLog /var/log/httpd/mokolo.com/access_log common RewriteEngine On RewriteRule (.*) /cocoon/mokolo

AbstractSAXSource constructor throwing java.lang.NullPointerException

2002-12-30 Thread Collin VanDyck
I've got a class that extends AbstractSAXSource.  My class's constructor is called with the parameters:   Environment ComponentManager Logger and others...   The first time that this class is instantiated once the j2ee (Jboss) system has been started, it runs fine.  No problem.   However, s

xsp:attribute generating a new element instead of an attribute in an already existing element

2002-12-30 Thread Luís Góis
Could you comment the behaviour below :   XSP :===    while(rsDates.next()) {   rsDates.getString(1)  }  currentDate  generated XML :=   27-12-2002   24-12-2002   expected XML : =     27-12-2002   24-12-2002       TIA Luís Góis

AW: pdf problem

2002-12-30 Thread Ines Robbers
Hi, I'm a total beginner... I opened the folder %PATH_TO_COCOON/WEB_INF/logs but not sure what to look for... Where do I get these jars you were talking of and where do I put them? Ines * -Ursprüngliche Nachricht- * Von: Perry Molendijk [mailto:[EMAIL PROTECTED]] * Gesendet: Mont

RE: sitemap [if or select case]

2002-12-30 Thread Luca Morandini
Stavros, I presume the ParameterSelector selector is the Cocoon component closest to your need. Or, you may use WildcardRequestParameterMatcher to write pipelines checking request parameters' values instead of URIs... though this is not EXACTLY a select/case construct. See it for yourself at:

taking over portal-layout to linked coplet-pages?

2002-12-30 Thread Wolfgang Weigel
Hello! I created a coplet inside the portal-framework. right now i want to use the layout from the portal to build in my webpages, which are linked from a coplet. to clarify the situation: in the coplet there are some links like this: Beispiele on that page sunspotdemoVerpackung-Beispiele I want

sitemap [if or select case]

2002-12-30 Thread Cocoon User
hi people is it possible to have any if or select case implementation into sitemap.xmap? i'm thinking to get a parameter from the requested URL and then call pipelines relative the requested url parameter thnx stavros - P

Re: pdf problem

2002-12-30 Thread Antonio Gallardo
I already have running and application with 2.1 CVS and in some versions of Internet Explorer I see this error. Antonio Gallardo Perry Molendijk dijo: > This is a pretty vague reply but I ran into the same problem when moving > from C2.0.3 to C2.1 but I can't remember exactly what I did to fix it

Re: pdf problem

2002-12-30 Thread Perry Molendijk
This is a pretty vague reply but I ran into the same problem when moving from C2.0.3 to C2.1 but I can't remember exactly what I did to fix it. I do know it has to do with Cocoon because the same files were working fine under C2.0.3. Check the error log (%PATH_TO_COCOON/WEB_INF/logs). I think it

Re: pdf problem

2002-12-30 Thread Antonio Gallardo
Hi Ines: Assuming that the PDF generation is right. There is a problem with Adobe Acrobat Reader. Try to set in the configuration of Acrobat that will not open on the same windows (explorer). It must resolve your problem. Regards, Antonio Gallardo. Ines Robbers dijo: > Hi there, > > I'm running

Url to virtual host - rewrite rule

2002-12-30 Thread Fred Vos
Hello, I've installed Apache 1.3.26, Tomcat 4.0.4 and cocoon 2.0.4 under Linux. Everything is working fine. If I go to http://localhost:8080 I see the Tomcat welcome page. I also have configured mod_jk successfully as you can see below. Now I want to get cocoon working for a webserver with two

PDF problem

2002-12-30 Thread Ines Robbers
Hi there, I'm running Cocoon 2.0.4 on Windows XP. At the moment I'm trying out the examples from the book "Cocoon: Building XML Applications" by M. Langham & C. Ziegler. Some of them work, others don't even though I've copied them from CD. In case of PDF-creation, for instance, Acrobat is loadin

Generating invalid url

2002-12-30 Thread Anna Afonchenko
Hi All. I have a pipeline that matches some http request with parameter indicating some url. For example: the http request is: cocoon/testing?url="">                                           > >   How I can check that the supplied url is valid? Does gen

pdf problem

2002-12-30 Thread Ines Robbers
Hi there, I'm running Cocoon 2.0.4 on Windows XP and Tomcat 4.1. At the moment I'm trying out the examples from the book "Cocoon: Building XML Applications" by M. Langham & C. Ziegler. In case of PDF-creation, Acrobat is starting to load the file but then a window pops up saying: "The file is da

map:part xpointer

2002-12-30 Thread Michael Wechner
Hi I would like to use "xpointer" together with "map:aggregate" resp. "map:part", e.g. instead of using XInclude, e.g. Any thoughts? Thanks Michael - Please check that your question has not already been

RequestParameterAction question

2002-12-30 Thread Anna Afonchenko
Hi all. I am using RequestParameterAction to process parameters given in http request. My http request looks something like this: http://localhost:8080/cocoon/test?[EMAIL PROTECTED]   here is my pipeline:                                                   >

can JSP work in WebLogic

2002-12-30 Thread Charlene Mitchell
Hi, How can I get a JSP working in Cocoon2.0.4 in WebLogic 7 (SP1) ? I get the following error: ERROR (2002-12-30) 13:32.14:335 [sitemap] (/myfile.jsp) ExecuteThread: '10' for queue: 'default'/sitemap_xmap: Sitemap org.apache.cocoon.ProcessingException: ServletException in JspGenerator.genera

RE: How to control a user already is logged?

2002-12-30 Thread Luca Morandini
Antonio, I dislike actions... but, on occasions, they're useful: /* * * @(#)IsUserLoggedAction.java * @version 0.1.0 08/07/02 * * Descrizione: * Controlla che l'utente sia loggato, restituisce una mappa vuota * se lo è, e null se non è loggato. * * Storia: * @author mailto:[EMAIL PROTEC

How to control a user already is logged?

2002-12-30 Thread Antonio Gallardo
Hi. I am trying to implement a control that a user cannot log from another computer if he is already logged-in. Where I can find the info about sessions to check if somebody is already logged? Thanks in advance, Antonio Gallardo.

How to generate multiple portal pages using Cocoon

2002-12-30 Thread Kavita Bansal
Hi   I am working with cocoon version 2.0.4 on tomcat 3.3 and jdk 1.3. I am refering the sunshine portal example for making a website.   The sunspotdemoportal example ,which is included in this cocoon version , displays a portal page to the user after he user logs in. This portal page shows 

Re: processing certain xml ,xsl file with xsp under cocoon and mysql?

2002-12-30 Thread Konstantin Piroumian
You can use something like this: ... ... and a pipeline: You can also implement cache validity policy in your generator to check if the XSLT has changed since last request and if not then use the cached version without need to retrieve it from the DB. Konstantin From: "Hubert

processing certain xml ,xsl file with xsp under cocoon and mysql?

2002-12-30 Thread Hubert Holtz
Hello, I don't know know how to open new XML files with a certain XSL file with the help of XSP and my Mysql database in Cocoon. I have a table called sites with an column for id,lang,XML,XSL, in my xsp- file I have a string-array called parameters where the 2 parameters of the typed url (e.g. ht

strange fo2pdf serializer problem (xmlform)

2002-12-30 Thread Kirchhoff, Lars
hi, I setup a sitemap with a resource to be able to give different output formats. - code -

Re: i18n catalogue and sql

2002-12-30 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]> > > hy people > > i have found very usefull the i18n processing > but what happend when you have large text? It's not recommended to use i18n transformer for large texts. There are several other ways to solve that task: use XInclude/CInclude, XSLT with doc