New Riders Cocoon book examples (CD)

2002-12-31 Thread Urmas Ojamäe
I have Cocoon book written by Matthew and Carsten, but I can't find where is my CD. Not at home and not at work place. I was over 50% sure that I copied examples from CD to HDD of my old computer. But now I have only new PC and I can't find examples from backup... ;-( Is it possible to download

Lost in the pipeline - cocoon/documentation

2002-12-31 Thread e nio
Am trying to follow the pipelines for cocoon to display the index.xml, for example when I type on the browser http://localhost:8080/cocoon/documentation I followed it from the main sitemap.xmap -> to a documentation sitemap.xmap. I lost track once the matcher has hit this partof the document

Re: xsp + parameters:it's OK

2002-12-31 Thread cyril vidal
Hi, Thanks for your response. It runs well now. I've just changed the type of the returned value in public static String get_fac(String number) to public static long get_fac(String number) because it returns a long value. Regards, Cyril. ___ Cyril Vidal Email: [EMAIL

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

2002-12-31 Thread Luís Góis
Title: Re: xsp:attribute generating a new element instead of an attribute in an already existing element In my last e-mail I've used a diferent XML tree sample than the one I initially posted here. I wan't to generate a XML tree like this :   > > >>expected XML :> > >>==

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

2002-12-31 Thread Jim Bearce
Yeah it probably would help if I paid attention to what I was typing, how about this instead? while(rsDates.next()) { if (rsDates.getString(1).equals(today) { currentDate = today; } currentDate rsDates.getString(1) } Luís Góis wro

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

2002-12-31 Thread Luís Góis
Title: Re: xsp:attribute generating a new element instead of an attribute in an already existing element Your solution only works when the "if" is true for the first loop iteraction. After that new child elements have been created and the attribute won't be placed where I want to.   A workin

RE: cocoon book [was: pdf problem]

2002-12-31 Thread Peter Hertogen
sorry Ines, I see you got the book already. I didn't read the "pdf problem" list, so just ignore my mail -Original Message- From: Ines Robbers [mailto:[EMAIL PROTECTED]] Sent: maandag 30 december 2002 23:59 To: [EMAIL PROTECTED] Subject: cocoon book [was: pdf problem] Hi, Many thanks

RE: cocoon book [was: pdf problem]

2002-12-31 Thread Peter Hertogen
cocoon: building xml applications, written by 2 committers of the cocoon project by matthew langham and carsten ziegeler, New Riders they did a good job writing this book (I am a XML and Java newbie) rgds, peter -Original Message- From: Ines Robbers [mailto:[EMAIL PROTECTED]] Sent: maand

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

2002-12-31 Thread Jim Bearce
Luís, I've seen the same things you have but I guess from a Cocoon perspective, it's not really an error; although it doesn't work the way you want it to. Maybe this would help you: while(rsDates.next()) { if (rsDates.getString(1).equals(today) { currentDate =

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

2002-12-31 Thread Luís Góis
Title: Re: xsp:attribute generating a new element instead of an attribute in an already existing element Hello Joerg.   I was expecting some error saying I couldn't create the attribute there, instead, I got an unexpected (from my point of view) XML tree.   Tks     -Mensagem original--

acces to Xindice from an action component

2002-12-31 Thread cristafol
Hi,   I´d made an action component based in SourceTypeAction (http://xml.apache.org/forrest/cap.html). Assigns an XSL to an XML file.   Source source = sourceResolver.resolve(src); InputStream is = source.getInputStream(); //don´t work   Error: Thread-9/ExcaliburComponentSelect

AW: xsp + parameters

2002-12-31 Thread Nils Leßmann
Hi, have a look in the generated java file (search for factoriel_xsp.java), that's usually the fastest way to see what's really going on. Anyway, I'd suggest using a second method public static String get_fac(String number) { try { long l = Long.parseLong(number); return fac(l); } ca

Authorisation problem

2002-12-31 Thread Sebastian Gil
Hi there. I've configured Tomcat to handle authentication and authorisation on my Cocoon pages and everything works fine, including accessing user database etc. Now, I would like to read user name and role from XSP. But I don't know how to do this. I tried to enumerate attributes in xsp-session

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

2002-12-31 Thread Joerg Heinicke
Hello Luis, the change of currentDate doesn't change the constraints of the API. You can not create an attribute after you already have created an element or text. If you have such a dependency you must calculate currentDate before creating the XML (move the logic out of the XML data structure)

Re: jpath problem

2002-12-31 Thread Ugo Cei
[EMAIL PROTECTED] wrote: My problem is that I can't figure out how to pass objects other than simple strings via the bizData object to the view layer. In the example below I only get the users object converted to a string. neither the getGroup() nor the getNames() methods get called. What am I d

jpath problem

2002-12-31 Thread Johannes . Hofmann
Hi, first let me say, that I really love the flow framework. Finally it can be fun to write web applications. My problem is that I can't figure out how to pass objects other than simple strings via the bizData object to the view layer. In the example below I only get the users object converte

Re: xsp + parameters

2002-12-31 Thread cyril vidal
Hi, Thanks for your response. When I do the following: > > Try something like: > > result: fac( name="number" default="0"/>) > I obtain such an error message: description org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error c

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

2002-12-31 Thread Luis Gois
Hi. My example wasn't good enough!:( I forgot to point out that currentDate might get changed in the while loop (see below), so that xsp:attribute must be evaluated after the java code within the xsp:logic block. while(rsDates.next()) { rsDates.getString(1) if (rsDates.getString(1

AW: strange fo2pdf serializer problem (xmlform)

2002-12-31 Thread Kirchhoff, Lars
ok i solved it, the problem is the internet explorer. I seems to have problems to map the right application if the filetype (means the extension eg. .html or .pdf) doesn't fit to the mime-type. I changed the action attribute in the forms to print.pdf instead of print.htm and it worked. ciao Lars