R: Cocoon SQL Transformation

2002-10-29 Thread Luca Morandini
Tom, what about adding a couple quotes around the username value ? Something like: insert into user_info (USERNAME) values ('xsl:value-of select=detail/name/') Best regards, P.S. Mind ! Strings may contain unmatched single quotes, which greatly offend the SQL parser, think about converting

xmlform and build

2002-10-29 Thread Sylvain.Thevoz
hello, I'm trying to write my first XMLForm form and I follow the doc example (wizard howto). In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war. Is it possible to compile only the new java files and add the .class

R: XML to Excel file

2002-10-29 Thread Lorenzo De Sio
Boris, I think your message got a bit underlooked: I agree it is quite a dirty trick, but it actually seems to work. I tried on both Excel 97 and 2000: in both cases the file gets correctly opened, and it retains the original HTML formatting (multiple colspan, colors, etc.). As you save the file

Re: xmlform and build

2002-10-29 Thread Mohamed El-Refaey
Hallo Sylvain Yes, it is bossible to compile the new Java files and put them under the WEB-INF classes directory under cocoon and the ramaing files relating to schematron and XMLForms files and stylesheets put them as a common web application under cocoon samples or whatever u want. I wish

[sitemap] Passing parameters to XML

2002-10-29 Thread Dave Biggar
In Cocoon-1.8.2, I can handle parameters to XML as follows: http://b.c/Q/zzz.xml?color=red and I can recover the value of 'color' in zzz.xml with: xsp:logic String colorParameter = request.getParameter(color); /xsp:logic But I have tried to duplicate the above with numerous

RE: xmlform and build

2002-10-29 Thread Sylvain.Thevoz
Yes it will help me, thank you Mohamed. Do you know how to extend this sample to write data you entered in persistence storage (database)? Sylvain -Message d'origine- De: Mohamed El-Refaey [mailto:m.refaey;imkenberg.de] Date: mardi, 29. octobre 2002 22:13 À: [EMAIL PROTECTED] Objet:

AW: once again urlrewriting

2002-10-29 Thread Christoph Stocker
hi all! does nobody has an idea what my problem is? please help, i can't continue my work! greetings, chris -Ursprüngliche Nachricht- Von: Christoph Stocker [mailto:chris.stocker;gmx.at] Gesendet: Montag, 28. Oktober 2002 11:46 An: [EMAIL PROTECTED] Betreff: once again urlrewriting

Re: once again urlrewriting

2002-10-29 Thread Peter Nuetzel . inglobo
Hi I don't know what may cause your problem. But I realized that your sitemap snippet is wrong: The map:serialize must be in the map:act element -peter . . map:match pattern=startOR map:act type=ORAction map:generate src=orneu/{nextpage}.xsp type=serverpages/ map:transform

Using SOAP Response in logic

2002-10-29 Thread Robin Cottiss
Hello, I have tried several techniques to try and get a value from a SOAP response to use as the value of a cookie. The closest I have got is to capture an XMLFragment using a xscript transform. But I have been unable to get a string from this fragment for use in a call to the builtin cookie

Re: xsp request variable is not declaired

2002-10-29 Thread Ilya A. Kriveshko
Try putting a document tag around all of your content and logic. I.e.: = ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; content xsp:logic String keyword = request.getParameter(value); /xsp:logic The 'value'

Re: xmlform and build

2002-10-29 Thread Mohamed El-Refaey
Hallo Sylvain nice, that this help u :) . ofCourse it is easy to extend this sample to write data entered in the XMLForms into persistance storage[DB] for e.g : if u use EJB as a persistance layer in ur project , u can easily in the Perform() method in ur Action after u get ur model

sunRise-logout NullPointerException

2002-10-29 Thread Damian Chojna
Hi, my apologies if a solution for this problem has already been posted to this group. I've followed the threads related to the issue of getting a NullPointerException when using the sunRise-logout action and setup my environment as suggested (putting the xml parsers in tomcat's endorsed

Fatal error - how to test database connection?

2002-10-29 Thread Derek Hohls
I get the following fatal error when trying to load a sub-sitemap: FATAL_E (2002-10-29) 16:32.18:484 [cocoon ] (Unknown-URI) Unknown-thread/JdbcConnectionPool: Excalibur could not create any connections. Examine your settings to make sure they are correct. Make sure you can connect with the

Re: Fatal error - how to test database connection?

2002-10-29 Thread Lajos Moczar
Derek - Did you declare the MySQL jar in web.xml thusly? init-param param-nameload-class/param-name param-value org.gjt.mm.mysql.Driver /param-value /init-param And put the jar where Cocoon will find it? Regards, Lajos Derek Hohls wrote: I get the following

Re: Using SOAP Response in logic

2002-10-29 Thread Markdelanoy
You might want to post your sitemap as well as the code used. It's hard to picture your problem without more contextual info such as code. Are you using XSP?? That would be the generator creating dynamic XML. Unless I missed the point of your question. thanks, md

Re: [sitemap] Passing parameters to XML

2002-10-29 Thread Markdelanoy
I'm not sure why that's not working as I use that concept all the time. I typically create actions that pull from the request object ,e.g. getParameter but action vs XSP shouldn't matter. ??? MD - Please check that your

Re: Fatal error - how to test database connection?

2002-10-29 Thread Derek Hohls
Lajos Yes, I did (same driver for all the projects). I did a shutdown/restart and now it seems OK?? Thanks Derek [EMAIL PROTECTED] 29/10/2002 04:35:08 Derek -Did you declare the MySQL jar in web.xml thusly? init-param param-nameload-class/param-name param-value org.gjt.mm.mysql.Driver

Mixed XSL performance under Windows/UNIX?

2002-10-29 Thread Derek Hohls
Does anyone know of a reason why an XSL stylesheet would exhibit different behaviour under Windows (test machine) and Unix (server). Could it be related to the fact that when I try and generate the XML input to the stylesheet on the server, the brower returns an error: The XML page cannot be

i18n:number and XMLFroms, need help here!

2002-10-29 Thread Ramy Mamdouh
Hello, I'm using the latest CVS HEAD. I wanna use I18n number formatting i18n:number with XMLFORMS... here is the problem xf:output ref=priceAmount xf:captioni18n:textPrice/i18n:text:/xf:caption xf:violations class=error/ /xf:output I

RE: xmlform and build

2002-10-29 Thread Sylvain.Thevoz
Thank you Mohamed. I don't use EJB but I use an RDBMS-object mapping tool named OJB. I haven't enough know-how in XMLForm to apply easily what you said. Have you a short example to demonstrate it? Thank you Sylvain -Message d'origine- De: Mohamed El-Refaey

RE: sunRise-logout NullPointerException

2002-10-29 Thread Carsten Ziegeler
Hi, I think this bug is fixed in the current cvs of 2.0.4. You have to check it out via cvs. HTH Carsten -Original Message- From: Damian Chojna [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 29, 2002 3:01 PM To: [EMAIL PROTECTED] Subject: sunRise-logout NullPointerException

RE: Using SOAP Response in logic

2002-10-29 Thread Robin Cottiss
Here is the XSP code. There is only a generator at the moment. Note that the xscript transform gives and error because it seems to call the cookie logicsheet at the wrong point (during the transform). If I create an XML fragment tokenbla/token in the transform then I cannot figure out how to use

Re: xmlform and build

2002-10-29 Thread Mohamed El-Refaey
Hi Sylvain the following snippet is from the WizardAction in the cocoon XMLForm Sample public Map perform (){ // get the actual model which this Form encapsulates // and apply additional buziness logic to the model UserBean jBean = (UserBean) getForm().getModel();

Re: xsp request variable is not declaired

2002-10-29 Thread Eric Everman
THANKYOU! That was the problem - Implicit variables are not created until the content tag is reached, thus logic referencing them will fail if prior to the content tag. The code that I reference for placing the logic outside the content tag was from a JavaWorld article. Did this used to work

encoding match problem

2002-10-29 Thread Iris
Hello, I have a little problem with encoding: I have data encoded in ISO-8859-1 that I try to serialize in XLS. On linux (debian) I have no problem but on NT I have an error like: org.apache.cocoon.ProcessingException: Failed to execute pipeline: org.xml.sax.SaxParseException: The declared

AW: once again urlrewriting

2002-10-29 Thread Christoph Stocker
hi! ok - i changed this, but the problem is still there. but thank your for your hint. greetings, chris -Ursprüngliche Nachricht- Von: Peter Nuetzel . inglobo [mailto:peter.nuetzel;inglobo.de] Gesendet: Dienstag, 29. Oktober 2002 13:02 An: [EMAIL PROTECTED] Betreff: Re: once again

Re: [sitemap] Passing parameters to XML

2002-10-29 Thread Eric Everman
Dave- I believe you are having the same problem I was having. Ilya's reply to me fixed the problem: Implicit variables are not created until the content tag is reached, thus logic prior to content that references them will fail. I'm *very* new to Cocoon so I have no experience with past

Re: xmlform and build

2002-10-29 Thread Mohamed El-Refaey
Hi Sylvain I had a quick look on the OJB (Object Relational Bridge tool) and I think now it will be easy to enter the Data into Persistance storage have a look at http://jakarta.apache.org/ojb/tutorial1.html in the part relating to Storing Objects and u can see what happend. // now

Empty anchor tags

2002-10-29 Thread Tuomo L
Hi, I'm trying to produce an empty anchor tag (HTML) with attribute name, but cocoon (XSL Tansformer + HTML Serializer) makes the closing tag in the result, which causes some browsers (IE) not to regognize the anchor. Tag: a name=foo Called with: a href=#foolink to foo/a This doesn't work

Re: xsp request variable is not declaired

2002-10-29 Thread Ilya A. Kriveshko
I'm pretty sure it is an XSP feature, but is possibly a documentation bug. The feature allows you to, for example, declare instance variables or declare instance or static methods to be used in the body of the XSP. Wouldn't you agree? I'm actually using it in some of my XSP pages, so please

Re: Empty anchor tags

2002-10-29 Thread Kjetil Kjernsmo
On Tuesday 29 October 2002 17:26, Tuomo L wrote: a name=foo Whooa, that would be a spec violation, IIRC... :-) Called with: a href=#foolink to foo/a This doesn't work with IE: a name=foo/a Ideas anyone? Use the id-attribute. All elements have an id-attribute which is intended for

Saving (or not) transformed output in a local file

2002-10-29 Thread Ludovic de Beaurepaire
Hello, I am using Cocoon only to generate PDF documents, but I have to send them in the HttpResponse or to save them in a file localized in the server. I am looking for the best way to make it : - Overriding the CocoonServlet using a FileSavingEnvironment ? - In a stylesheet ? logicsheet ?

dynamic XMLForm taking inout data from previous steps?

2002-10-29 Thread Josema Alonso
Hi, all. This is what I'm trying to do: 1.- I want to have a form similar to the wizard sample. In the first page I want to have a input box that can hold a number and another for a name. Something like this: ?xml version=1.0? document xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002;

Re: Empty anchor tags

2002-10-29 Thread Tuomo L
Thanks, it works now. Should follow the specs. Wasn't a name=foo valid in HTML 4.0, though? Id is better anyway, it's more generic. -Tuomo On Tue, 29 Oct 2002, Kjetil Kjernsmo wrote: On Tuesday 29 October 2002 17:26, Tuomo L wrote: a name=foo Whooa, that would be a spec violation, IIRC...

FormValidatorAction

2002-10-29 Thread Ray Martin
using a descriptor file like employee-form.xml in the tutorial directory. have FormValidatorAction called from the sitemap. a line in core.log states All form params successfully validated - written by FormValidatorAction. no other lines from FormValidatorAction. therefore, neither the

RE: Mixed XSL performance under Windows/UNIX?

2002-10-29 Thread Ryan Agler
One thing that comes to mind is the different ways Unix and Windows insert line breaks. I sometimes author XSLT text files in Windows, and after opening them in Linux (X-Emacs) there are a bunch of ^M characters at the end of each line. I replace them just because they are annoying and make the

Re: restricting access to cocoon

2002-10-29 Thread Bruno Dumon
On Tue, 2002-10-29 at 06:29, Ivelin Ivanov wrote: A few other people asked the same question recently. My personal believe is that security is orthogonal to Cocoon and belongs to the J2EE container. If you will have the time, please consider submitting a HOWTO patch to Cocoon's bugzilla

RE: Empty anchor tags

2002-10-29 Thread Hunsberger, Peter
Thanks, it works now. Should follow the specs. Wasn't a name=foo valid in HTML 4.0, though? Id is better anyway, it's more generic. It's still valid, from the same document: http://www.w3.org/TR/html401/struct/links.html#h-12.2.1 You can use either name or id, but the name has to be unique.

Re: Empty anchor tags

2002-10-29 Thread Kjetil Kjernsmo
On Tuesday 29 October 2002 18:09, Tuomo L wrote: Thanks, it works now. Great! Should follow the specs. Yup! Wasn't a name=foo valid in HTML 4.0, though? Nope, I'm quite sure it wasn't. May have been valid in 3.2 but 3.2 was DTDed tag soup anyway :-) Id is better anyway, it's more

Re: Saving (or not) transformed output in a local file

2002-10-29 Thread Antonio Gallardo Rivera
It depends. I am using the PDF serializer to create some reports from data in a database. I am making it on the fly. Because is the better way to always have the lastest data into the PDF. By the way it is very fast. But maybe if you have a big static document, you can create it once and then

Re: Restricting access to cocoon

2002-10-29 Thread Antonio Gallardo Rivera
I made my own solution :) I use the auth-block from Cocoon. Then I added some permisions to user to define some actions they can do. After that before I generate the new page I check if the user can the access to the page using session:getxml. I know this is not the best approach. But it

Cocoon 2.0.3, Resin 2.1.4, core.log, and StoreJanitorImpl

2002-10-29 Thread Jonathan Lancelle
I'm running Cocoon 2.0.3 with Resin 2.1.4. It seems to work fine. It used to die unexpectedly quite often until I tweaked a few parameters in my resin servlet engine conf file. It was improperly configured to the constraints imposed upon me by the web host being used. But I still noticed many

Re: [sitemap] Passing parameters to XML

2002-10-29 Thread Dave Biggar
Thanks Eric but unfortunately my problem is not the same as yours. I have always had a root element page. Dave - Original Message - From: Eric Everman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 29, 2002 11:13 AM Subject: Re: [sitemap] Passing parameters to XML

Re: R: XML to Excel file

2002-10-29 Thread Antonio Gallardo Rivera
El Martes, 29 de Octubre de 2002 04:50, Lorenzo De Sio escribió: Boris, I think your message got a bit underlooked: I agree it is quite a dirty trick, but it actually seems to work. I tried on both Excel 97 and 2000: in both cases the file gets correctly opened, and it retains the original

Re: [sitemap] Passing parameters to XML

2002-10-29 Thread Dave Biggar
As I understand it, and that's not great, runtime parameters may be manipulated by either an Action or by XSP. I realize that my knowledge of Actions is not enough to get anything working -- and it's back to the manual for me. I haven't found a single example so far. But I am still curious as to

Cocoon 2.1 Authentication Samples

2002-10-29 Thread Alex Romayev
Hello, A number of people a couple of weeks ago had problems getting 1.2 dev authentication samples (as well as portal) to run. The issue was an IlligalState exception or something of that sort. Does anyone know if it's been fixed in the current CVS? Thanks, -Alex

xml document validation against schema or dtd

2002-10-29 Thread Oskar Casquero
Hello, Has anybody tried to implement xml document validation in cocoon? I can'tconfigure validation in cocoon.xconf, because cocoon needs a grammar when this feature is setup. So, I would like to know if it is a good idea to build a component that doesthe validation, and in this case,

HTML entities in UTF-8

2002-10-29 Thread Robert Lubczynski
Hi, Why does Cocoon generates UTF-8 encoded HTML with named entities? Does anyone know how to produce pure UTF-8 encoded HTML (without any character entities)? I am using Cocoon 2.0.3 + Tomcat 4.1.12 + JDK 1.4.1. Robert Lubczynski

More sub-sitemap questions

2002-10-29 Thread Justin Fagnani-Bell
Good afternoon (in Cali), As I mentioned in my last email (anyone figure an answer yet? I haven't), I'm trying to keep all my Cocoon projects running live on my development server via auto mounting sub-sitemaps. The ability for each mount to have it's own cocoon.xconf file seems to be the

Re: Cocoon task scheduler

2002-10-29 Thread Michael Wechner
Ivelin Ivanov wrote: Did you look at Quartz? http://quartz.sourceforge.net/ Well, we have added Quartz to Wyona, and Wyona is based on Cocoon, so ... ;-) I also don't think it's a good idea to add another feature to Cocoon, but maybe this is something for cocoon-apps. We would certainly not

Current 2.1-dev CVS build

2002-10-29 Thread Mark Eggers
Folks, Environment: === Windows/2000 Professional with all relevant patches IIS 5 with all relevant patches JDK 1.3.1_04 Tomcat 4.1.14 running as a service mod_jk 1.2 (isapi_redirector.dll) Jetspeed current CVS (as of 0900 PST 10/01/02) Cocoon 2.1-dev current CVS (as of 01000 PDST

Re: dynamic XMLForm taking inout data from previous steps?

2002-10-29 Thread Josema Alonso
I tried to figure how the xf:repeat and xf:group tags work, maybe that's the way to go. Still not much info about it anyway. I think I've almost got it: xf:repeat nodeset=languages[position() lt;= /descriptionsNumber] id=descriptionLangs xf:textbox ref=. class=info xf:captionLanguage

xscript:transform parameters and xsp:expr

2002-10-29 Thread Steven Cummings
Hey all, I'm working on a problem and maybe somebody knows what is going wrong. It seems that if I make a soap request to build a new xscript variable, even if part of the soap request is build using xsp:expr's, the result successfully gets placed in the variable. This means that the XSP

Re: Current 2.1-dev CVS build

2002-10-29 Thread Richard Reyes
try reinstalling your tomcat and make sure that there are no spaces. like: c:\program files\apache group\tomcat\4.1 change to c:\apachegroup\tomcat\4.1... - Original Message - From: Mark Eggers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 6:04 AM Subject:

Current 2.1-dev CVS build

2002-10-29 Thread Mark Eggers
I re-installed the production version (2.0.3) from source into the same environment, and that version works fine. Unfortunately, I have grown accustomed to XML Forms . . . In addition to jakarta-regexp-1.2.jar being present in cocoon/WEB-INF/lib, it is also present in the commons area for

RE: Cocoon 2.1 Authentication Samples

2002-10-29 Thread Carsten Ziegeler
AFAIK it's fixed. Carsten -Original Message- From: Alex Romayev [mailto:romayev;yahoo.com] Sent: Tuesday, October 29, 2002 9:03 PM To: [EMAIL PROTECTED] Subject: Cocoon 2.1 Authentication Samples Hello, A number of people a couple of weeks ago had problems getting 1.2 dev