Changing request Parameters in an Action.

2002-10-07 Thread Antonio Gallardo Rivera
Sorry but, I am reopening this, because I need to change some parameters on the client form before I can add it to the database. I have a 2 fields database key: cat_id (foreign key from table categories) pro_id In the table are some values: cat_id pro_id pro_name 1 1

Re: Changing request Parameters in an Action.

2002-10-07 Thread Antonio Gallardo Rivera
The answer I found was using Javascript to change the values of 2 hidden parameters using the OnChange event of the object select. Antonio Gallardo El Lunes, 07 de Octubre de 2002 00:31, Antonio Gallardo Rivera escribió: Sorry but, I am reopening this, because I need to change some parameters

Re: Random generator

2002-10-07 Thread Christian Haul
On 06.Oct.2002 -- 04:57 PM, Antonio Gallardo Rivera wrote: Hi Folks! Is in Cocoon support for generating random database keys? Or a function that can return a random number? I know that in Java is support for the Random class. This class generate a sequence based on a seed (like

Re: Problem with modular database actions from CVS

2002-10-07 Thread Christian Haul
On 06.Oct.2002 -- 01:52 PM, Hugo Burm wrote: Hello, I am using the modular database actions and doing a simple select action on a table. With the CVS version of about a week ago, this worked ok, and the results were stored in the request attributes by the default output module. With the

+ character in source filename

2002-10-07 Thread Upayavira
Dear All, I'm using Cocoon to apply a new style to an existing site, i.e. HTML-XML-HTML. So far, it is working very well, however: In the original site, there are a few HTML files that have + characters in the filename, e.g. mind+body.html. When used as the source for a pipeline, I get: A

Can't display images

2002-10-07 Thread Ganael LAPLANCHE
Hi ! I've got a very stupid problem... If I insert an image link in an XML page, it isn't displayed at all... Here is my sitemap code... map:pipeline map:match pattern=test.html map:generate src=docs/test.xml type=serverpages/ map:transform

RE: Can't display images

2002-10-07 Thread Reinhard Poetz
Make sure that the image is available at that link: ./test.html ./pics/test.jpg Maybe you have to insert something like this: map:match pattern=pics/*.jpg map:read src=pics/{1}.jpg mime-type=image/jpg/ /map:match Try to access your image directly (entering the URL into the adress bar)

maybe a Cocoon bug ?

2002-10-07 Thread Barbara Post
Hi all and gurus, I have an xsl stylesheet which uses a java extension, which has a native method calling a dll (passing a string and getting a crypted string back). I have to use this dll... I use Tomcat 4.1.12 and the dll is not found, it doesn't seem to be a Tomcat problem (its PATH points

Re: Can't display images

2002-10-07 Thread Ganael LAPLANCHE
Hi Reinhard, Thank you very much, I modified the sitemap, and it works perfectly : Regards, Ganaël. - Original Message - From: Reinhard Poetz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 07, 2002 11:22 AM Subject: RE: Can't display images Make sure that the

Generating a 404 not found

2002-10-07 Thread Ugo Cei
Hi people, let's say you have a website with an administrative section that is protected using the Authentication Framework: map:match pattern=admin/** map:act type=auth-protect map:parameter name=handler value=authhandler/ map:match pattern=admin/newuser ...

RE: Changing request Parameters in an Action.

2002-10-07 Thread Piroumian Konstantin
Exactly like that. You can't change request parameters, you should use request attributes instead. In theory, if you need different request parameters then you should create a new request and set all the parameters you need. But I don't think that you'll need this approach for your task.

Cannot access sub-sitemaps of Cocoon's doc

2002-10-07 Thread Barbara Post
I've noticed this problem before. Tomcat runs on port 9090, I can only browse links I have from Cocoon's main page, I mean that direct typing of : http://localhost:9090/cocoon/samples/resources or even http://localhost:9090/cocoon/samples leads to : resource not found. CVS from 10/03. What is

RE: Cannot access sub-sitemaps of Cocoon's doc

2002-10-07 Thread Reinhard Poetz
Barbara, Maybe a typo of you but you need a slash at the end to reach the samples: http://localhost:9090/cocoon/samples/ Regards, Reinhard -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 12:41 PM To: [EMAIL PROTECTED] Subject:

Re: Cannot access sub-sitemaps of Cocoon's doc

2002-10-07 Thread Antonio Gallardo Rivera
I have the same problem, try this: 1) ./build.sh clean 2) delete dirs: works and webapps/cocoon 3) ./build.sh -Dinclude.webapp.libs=true \ -Dinclude.scratchpad.libs=true installwar 4) Try: http://localhost:9090/cocoon/samples/ If this does not work, 5) delete dirs: works and webapps/cocoon

Re: Cannot access sub-sitemaps of Cocoon's doc

2002-10-07 Thread Barbara Post
Great, thanks Reinhard, this works now :-) - Original Message - From: Reinhard Poetz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 07, 2002 12:47 PM Subject: RE: Cannot access sub-sitemaps of Cocoon's doc Barbara, Maybe a typo of you but you need a slash at the end to

how to use Input Modules ?

2002-10-07 Thread Barbara Post
It seems that DefaultsMetaModule could fit my need : since I have troubles with sitemap global parameters, they don't seem to work well, how can I use Input Module to feed some variables (constants in fact) in ? It's not clear to me. Thanks for more info. Babs

RE: how to use Input Modules ?

2002-10-07 Thread Piroumian Konstantin
First of all I should warn you to be careful with InputModules until some oficial release, cause they are actively discussed right now at the dev list and they can be changed (names, behavior, interfaces). You have been warned. To use the DefaultsMetaModule you should tweak your cocoon.xconf

Re: how to use Input Modules ?

2002-10-07 Thread Christian Haul
On 07.Oct.2002 -- 04:03 PM, Piroumian Konstantin wrote: First of all I should warn you to be careful with InputModules until some oficial release, cause they are actively discussed right now at the dev list and they can be changed (names, behavior, interfaces). You have been warned. To use

Re: help me!!

2002-10-07 Thread Mauro Daniel Ardolino
Can you see the cocoon presentation page?: http://localhost:port/cocoon On Sat, 5 Oct 2002, Collado T Luis E wrote: Hi, how are you?, I have a problem: I am trying to installing cocoon1.8.2 with tomcat3.3a, using http://xml.apache.org/cocoon1/install.html installation notes. Tomcat is

Re: how to use Input Modules ?

2002-10-07 Thread Barbara Post
Thanks Konstantin, your warnings are welcome :-) I will have a look on cocoon-dev for more info... Please, do you have an idea when I can fully use sitemap global parameters ? With {../../ ... } it gets messy to read, and {/param} doesn't work for now... (10/03 CVS). Don't mean to offend. Babs

Re: help me!!

2002-10-07 Thread Collado T Luis E
Yes, i can see that page: It has a folder named samples/ A question: do you speak spanish?if your answer is afirmative we can talk spanish. On Mon, 7 Oct 2002, Mauro Daniel Ardolino wrote: Can you see the cocoon presentation page?: http://localhost:port/cocoon On Sat, 5 Oct 2002,

i18n with sub sitemaps

2002-10-07 Thread Majcen, Kurt
Hi all! Is it possible to tell the i18n transformer to use a fixed catalogue-location from the projects root directory (so something like '/translations' instead of 'translations') I'm working with mounted sitemaps in sub-directories. This always creates a wrong path when entering such a sub

RE: i18n with sub sitemaps

2002-10-07 Thread Piroumian Konstantin
From: Majcen, Kurt [mailto:[EMAIL PROTECTED]] Hi all! Is it possible to tell the i18n transformer to use a fixed catalogue-location from the projects root directory (so something like '/translations' instead of 'translations') I'm working with mounted sitemaps in sub-directories.

Input Modules

2002-10-07 Thread Barbara Post
OK guys, I give up. It seemed to be willing to work at first, but it won't. If I change the input module name I get : org.apache.avalon.framework.configuration.ConfigurationException: Error while creating node 'generate' at jndi:/localhost/baepp/sitemap.xmap:460:122 Or else, if I keep

Re: SunShine-InsertTransformer: encoding problem

2002-10-07 Thread Alex Romayev
Sorry for the re-post, but there have been some mail problems on Friday when I posted it and I haven't heard from anyone since then. I'm still struggling with both problems, so any help would be greatly appreciated. Alex --- Alex Romayev [EMAIL PROTECTED] wrote: Sorry the C is supposed to read

RE: SunShine-InsertTransformer: encoding problem

2002-10-07 Thread Carsten Ziegeler
Alex Romayev wrote: Hi, I'm trying my way around SunShine and running into 2 problems: 1) I have an existing XML file with UTF-8 encoding. I use InsertTransformer to add a new record. It does so correctly, but changes the file encoding to ISO-8859-1

help me!!

2002-10-07 Thread Collado T Luis E
Hi, how are you?, I have a problem: I am trying to installing cocoon1.8.2 with tomcat3.3a on Red hat Linux 7.2, using http://xml.apache.org/cocoon1/install.html installation notes. Tomcat is working well, but when i am trying to run the follow URL:

Re: svg2jpeg not working properly.

2002-10-07 Thread Jacob L E Blain Christen
[snip] works. I have not touched the main site map or any of the samples code. Ahh, but has your jdk installation been updated? The headless stuff on the backend works differently between jdk1.3 and 1.4. Just a thought. -- Jacob L E Blain Christen Entheal LLC

Cocoon, Java Extensions and Xalan

2002-10-07 Thread Spencer
Hi I am writing some Java extensions to XSL which are working fine when I run them off the command line (java org.apache.xalan etc). The Java method is returned and added to the transformation. However, when I use Cocoon to run the transformation, there is no Java output. The rest of the

use-case [was :Re: how to use Input Modules ?]

2002-10-07 Thread Barbara Post
ok, following Christian's piece of advice/explaination (creating a *_new instance_*) made it work although I have some bugs I will check tomorrow. My only worry about global-parameters was that the initial proposal implied a {/name_of_param} path that doesn't work for now (I did not look into

Problem with Directories Outside of cocoon...

2002-10-07 Thread Jaimes Blunt
Title: Problem with Directories Outside of cocoon... Hi Guys, I currently have cocoon 2.0.3 installed and running on Tomcat 4.1.12. I am able to edit my sitemap under the webapps/cocoon directory to recognize new xml and xsl's, however I now want to create a new webapp and use cocoon to

Re: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jacob L E Blain Christen
Problem with Directories Outside of cocoon...[snipped all because it wasn't plain text, sorry but I'm a snob in this regard] Here's what I did: 1) copied all of $COCOON_HOME/WEB-INF into the root of my new webapp 2) copied $COCOON_HOME/sitemap.xmap into the root of my new webapp 3)

RE: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jaimes Blunt
Do you have any idea if I have to keep all of the files in the WEB-INF\lib directory, the WEB-INF/db directory and everything in the WEB-INF/classes directory? Jaimes -Original Message- From: Jacob L E Blain Christen [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:55 AM

Re: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jerry Fowler
My cowardly approach was to cd webapps/cocoon cp -r tutorial EXP edit webapps/cocoon/sitemap.xmap to copy the reference to tutorial, and make the appropriate change in the copy to EXP, and then, of course, actually do something useful and new with my new webapps/cocoon/EXP directory. I figure

Upload bug ?

2002-10-07 Thread Ganael LAPLANCHE
Hi all ! I've got a little problem with cocoon upload... My project has to unzip a file once it's been uploaded, this is done with an xsp page. My problem is the file doesn't exist (nearly each time I upload a file) when the code is executed ! The file.exists() java method returns false... I

RE: SunShine-InsertTransformer: encoding problem

2002-10-07 Thread Alex Romayev
--- Carsten Ziegeler [EMAIL PROTECTED] wrote: Alex Romayev wrote: Hi, I'm trying my way around SunShine and running into 2 problems: 1) I have an existing XML file with UTF-8 encoding. I use InsertTransformer to add a new record. It does so

Pipeline...

2002-10-07 Thread Mauro Daniel Ardolino
Hello! I cannot understand how to configure a pipeline for this: I have a xml-file and a xsl-file(logic). Applying them I want to obtain a xsp page and then apply another xsl-file(style) to obtain a html-file. Well, I've made this pipeline in my sitemap.xmap: map:match pattern=prueba.xml

Re: SOAP server - Need Marcus help

2002-10-07 Thread Marcus Crafter
Hi Dario, On Mon, Oct 07, 2002 at 12:59:56PM -0300, Dario Liberman wrote: Hello, I sent a message the other day asking for some architect guru to help me, titled Re: Servlet-Ouput as Cocoon-Input I have read the mailing list trying to find an answer by myself since then. Did you

Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Sonny Sukumar
Hi guys, I'm following along in the book Cocoon: Building XML Applications and trying to get the Hello World example to work. BEFORE you delete my email, PLEASE take a quick look at the really simple files and config info below and see if you can help me. I would REALLY appreciate the help

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Kjetil Kjernsmo
On Monday 07 October 2002 19:24, Sonny Sukumar wrote: The error: The requested URI /cocoon/helloworld was not found. Now, the pipeline config info in sitemap.xmap: I could have wild guess at this since I just was confused looking at a helloworld example myself. But of course, your problem

Re: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jacob L E Blain Christen
Do you have any idea if I have to keep all of the files in the WEB-INF\lib directory, the WEB-INF/db directory and everything in the WEB-INF/classes directory? Jaimes -Original Message- From: Jacob L E Blain Christen [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:55

Re: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jacob L E Blain Christen
Do you have any idea if I have to keep all of the files in the WEB-INF\lib directory, the WEB-INF/db directory and everything in the WEB-INF/classes directory? Jaimes -Original Message- From: Jacob L E Blain Christen [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:55

Re: Pipeline...

2002-10-07 Thread Mauro Daniel Ardolino
I really need help on this. I red a lot of examples and a lot of information about sitemap and still can't solve it (I'm new working with cocoon). Graphically (like in the manual): xml(content) xsl(logic) \ / \ / xsp | xml

Re: Pipeline...

2002-10-07 Thread Joerg Heinicke
Hello Mauro, you need two matches: map:match pattern=prueba.xsp map:generate type=file src=content/prueba.xml/ map:transform src=logic/prueba.xsl / map:serialize type=xml/ /map:match map:match pattern=prueba.xml map:generate type=xsp src=cocoon://prueba.xsp/ map:transform

XIndice inside XSP (using eXist logicsheet), how?

2002-10-07 Thread Josema Alonso
Hello. I have XIndice working with Cocoon. I followed the directions at Cocooncenter and everything is going fine when requesting XMLDB URIs. Now I'd want to have a XSP querying the database so I could encapsulate the DB calls and pass parameters easily. I searched trough the archives and found

sunRise - java.lang.NullPointerException

2002-10-07 Thread Brian Schwark
Greetings everyone - I'm trying to get set up with sunRise. I've managed to get most of the setup complete for authentication and protection of a test resource. I'm able to enter a username and a password, and I can see in the encoded URI in the browser window that redirection to my resource

dbAdd Action help.

2002-10-07 Thread Antonio Gallardo Rivera
Hi, please help me :) I am getting the following error: Description: org.apache.cocoon.ProcessingException: Could not add record: java.sql.SQLException: ERROR: ExecAppend: Fail to add null value in not null attribute cli_id The parameter is set at the beginning of the page using: parameter

Re: Pipeline...

2002-10-07 Thread Mauro Daniel Ardolino
Thanks a lot!! It works fine. -- Mauro On Mon, 7 Oct 2002, Joerg Heinicke wrote: Hello Mauro, you need two matches: map:match pattern=prueba.xsp map:generate type=file src=content/prueba.xml/ map:transform src=logic/prueba.xsl / map:serialize type=xml/ /map:match

RE: Why is my cocoon app an IE6 killer?

2002-10-07 Thread Els Stevens
I'm using IE6SP1 and loaded the site WITH images without any problem. I'm using a fully updated Win2K server version. Did you solve the problem in the mean time? Bert At 11:20 5/10/2002 +0200, you wrote: Ryan, I can confirm your findings, with IE 5.5 and IE 6.0 I've experienced this anomaly

SOAP server - Need Marcus help

2002-10-07 Thread Dario Liberman
Hello, I sent a message the other day asking for some architect guru to help me, titled Re: Servlet-Ouput as Cocoon-Input I have read the mailing list trying to find an answer by myself since then. I found mails talking about SOAP cocoon from Marcus. How should I get into this? Are there some

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Sonny Sukumar
Hi, I should have mentioned that sitemap.xmap is in $COCOON_HOME, where it is supposed to be from what I've read. I tried your suggestion, and got the same error. Btw, can anyone tell me why there are MULTIPLE sitemap.xmap files in $COCOON_HOME subdirectories? I thought there was only

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Steven Noels
Sonny Sukumar wrote: If anyone can help me out with my original Hello World question, I would REALLY appreciate it..I want to get this to work sooo much. I have trouble understanding your problem, too. Could you give us a dirlisting of $TOMCAT_HOME/webapps/cocoon - assuming you have

RE: Why is my cocoon app an IE6 killer?

2002-10-07 Thread Ryan Agler
I have not upgraded to SP1 yet, but Microsoft probably did fix the problem if yours works. However, my main concern is that most users out there will not have SP1. For me, the solution was using the test HTTP/1.1 connector instead of Coyote. The test connector seems to do something

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Sonny Sukumar
Sure, here's a quick copy and paste of $COCOON_HOME (same thing as $TOMCAT_HOME/webapps/cocoon): cocoon.xconf.moved i18n resources sitemap.xmap.bak tutorial docs logicsheets samples stylesheets WEB-INF documentationMETA-INF search

RE: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Hunsberger, Peter
I also don't understand why the other Cocoon pages still come up after I deleted ALL the other stuff inside the map:pipelines tag other than my map:pipeline for the Hello World example that generates from helloworld.xml, transforms with helloworld2html.xsl and serializes the output. That

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Steven Noels
Sonny Sukumar wrote: The problem *is* a Cocoon problem. The Tomcat servlet engine works just fine and Cocoon runs on it, but I can't get this Hello World example to work. I also don't understand why the other Cocoon pages still come up after I deleted ALL the other stuff inside the

RE: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Sonny Sukumar
On a fresh Tomcat (4.1.12) installation I copied the file cocoon.war (this is Cocoon 2.0.3) into the $TOMCAT_HOME/webapps directory. I then started Tomcat using $TOMCAT_HOME/bin/startup.sh, navigated to http://localhost:8080/cocoon and Tomcat expanded cocoon.war into

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Sonny Sukumar
I switched treeprocessor by commenting out one sitemap tag and uncommenting the other one in cocoon.xconf. Btw, what is stored in Tomcat's work directory? This might sound like a dumb question to you, but I'm still on Hello World. :-) Likewise, I haven't done anything with error handling,

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Steven Noels
Sonny Sukumar wrote: I switched treeprocessor by commenting out one sitemap tag and uncommenting the other one in cocoon.xconf. no huuray however? Btw, what is stored in Tomcat's work directory? This might sound like a dumb question to you, but I'm still on Hello World. :-) using the

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Steven Noels
Sonny Sukumar wrote: HOWEVER: Cocoon now recognizes the URI when I navigate to http://localhost:8080/cocoon/helloworld, but it is nothing but a blank page. This started happening after switching the sitemap tag, and this behavior is still there after deleting the contents of

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Sonny Sukumar
I cleared out error.log and accessed http://localhost:8080/cocoon/helloworld again and there's no errors that are logged. The page just comes up blank. When I click on View Source, the document source is COMPLETELY empty. Should I be using something other than serialize/? I just copied

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Steven Noels
Sonny Sukumar wrote: I cleared out error.log and accessed http://localhost:8080/cocoon/helloworld again and there's no errors that are logged. The page just comes up blank. When I click on View Source, the document source is COMPLETELY empty. Should I be using something other than

Re: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Sonny Sukumar
Man, Steven, thanks for pointing that out--the Hello World example works now. The really weird thing is that I *did* check that quite a few times and fixed the missing ? mark before. However, I had made a backup copy of the helloworld.xml file so that I could delete my whole cocoon

RE: Stuck on Hello World, with non-FAQ Problem

2002-10-07 Thread Geoff Howard
- Make sure you xml declaration in helloworld.xml is ?xml version=1.0? (in your email it reads: ?xml version=1.0, missing the ending ? - hopefully that was just a typo. - Try adding to your xsl: xsl:template match=/ xsl:apply-templates select=document/ /xsl:template Doing those two

Link Livesites:

2002-10-07 Thread Ahmed
On the Live Sites powered by Apache Cocoon page (http://xml.apache.org/cocoon/link/livesites.html): XSLTPatterns.com (http://www.xslt-patterns.com/) and Order Up Delivery (http://www.orderupdelivery.com/) links are broken.

Re: Why is my cocoon app an IE6 killer?

2002-10-07 Thread Antonio Gallardo Rivera
IE6 SP1 have the same problem. I still have the same problem with it. As you noted before this problem is a combination of IE and Tomcat. Of course if you upgrade or downgrade to a version without the problem, this is gone. Thanks, Antonio Gallardo El Lunes, 07 de Octubre de 2002 15:36, Ryan

Re: dbAdd Action help.

2002-10-07 Thread Antonio Gallardo Rivera
Thanks for the help! I found that in dbAddAction, we must to supply into the descriptor like key all the values that cannot be null! This is not describen into the documentation. I as not able to check my problem, because the FormValidatorAction tell that all the valuse was there. But as I

Re: dbAdd Action help.

2002-10-07 Thread Antonio Gallardo Rivera
I forgot mention I am using PosgreSQL 7.2 :) Antonio Gallardo El Lunes, 07 de Octubre de 2002 23:32, Antonio Gallardo Rivera escribió: Thanks for the help! I found that in dbAddAction, we must to supply into the descriptor like key all the values that cannot be null! This is not describen

Re: Link Livesites:

2002-10-07 Thread Litrik De Roy
And it looks like the new Link Livesites that have been sent recently to this list haven't been added yet to that page. (At least the Inventive Designers site is not on the page) How often does that page get updated? Litrik De Roy www.litrik.com - Original Message - From: Ahmed [EMAIL

RE: sunRise - java.lang.NullPointerException

2002-10-07 Thread Carsten Ziegeler
Please give us more information - stack trace of the exception, log files, sitemap etc - everything which might be appropriated to tell where the error occurs. Carsten -Original Message- From: Brian Schwark [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 8:19 PM To: [EMAIL

RE: SunShine-InsertTransformer: encoding problem

2002-10-07 Thread Carsten Ziegeler
Alex Romayev wrote: This is currently hard coded into the transformer(!) which means you can't do anything against it... The InsertTransformer has been merged with the SourceWritingTransformer in 2.1-dev - the SourceWritingTransformer can be configured to what encoding should be