Re: some doubts about developing with cocoon

2004-09-21 Thread Adrian Petru Dimulescu
On Monday 20 September 2004 20:57, Roger I Martin PhD wrote: > many webapp developers would be surprised by what they can achieve with/by learning > jsp+jsf+xslt+etc. and custom servlets whether they are developed as code > or dynamically generated. Well, I guess you discovered Java/J2EE after di

Re: passing extra parameters to handleForm

2004-09-21 Thread Jorg Heymans
Yeah, forget about that clumsy "handleForm" and use a plain old function. IMO, the name of the form definition and binding belong to the controller (i.e. the flowscript) and not to the sitemap. somehow i thought "handleForm" was the standard and most advanced way of creating a form. I'm still

RE: seemlessly exporting to and importing from MS excel

2004-09-21 Thread Hillebrand, Martin
Hello Tom. >-Original Message- >From: Tom Playford [mailto:[EMAIL PROTECTED] >Sent: Monday, September 20, 2004 3:41 PM > > [...] >I have a client who would (basically) like to edit a (mysql) database >from MS Excel via the web (he needs to be able to do this from >anywhere). [...] You

Re:Still problem Tomcat5.X + cocoon1.2.5

2004-09-21 Thread rasul m
Hi dont have after cocoon.war folder but it is as archive in #cocoonhome/build/cocoon-2.1.5.1. I extracted and placed in webaps of Tomcat but i have still problem url: http://localhost:8080/cocoon Problem: /cocoon not found What can i do? Thanks in advace r m __

Re: seemlessly exporting to and importing from MS excel

2004-09-21 Thread Jorg Heymans
I've set up a DB tool with Cocoon and it works for editing the tables, adding and deleting rows, querying for certain terms and fields etc. It is a remittance work, so I'm not able to give you any source but the assurance you're on the right track and it works. You just don't need Excel at all. ht

XSP, name of root element

2004-09-21 Thread Huber, Daniel
Hi, is it right that in XSP I have no chance to specify the name of the root element to be generated dynamically? I try to implement a quite generic XSP which should get the name of the root element via sitemap parameters. It's no problem to do this for any element which is a child of the root el

Re: Re:Still problem Tomcat5.X + cocoon1.2.5

2004-09-21 Thread roy huang
try http://localhost:8080/cocoon/ - Original Message - From: "rasul m" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 3:40 PM Subject: Re:Still problem Tomcat5.X + cocoon1.2.5 > Hi > dont have after cocoon.war folder but it is as > archive > in #cocoonhom

Re: some doubts about developing with cocoon

2004-09-21 Thread Jan Hoskens
If your container is tomcat, then every webapp will be accessible through the name of its directory: (war's will be unpacked so it's the same thing actually, I work with the dir version, not the war) (Also note that "tomcat" can be substituted with almost any other container, I just used it here

Re: problem with passing variables - please help.

2004-09-21 Thread fabrizio picca
no, also in this way i cannot get any parameter On Tue, 21 Sep 2004 08:57:09 +0200, Derek Hohls <[EMAIL PROTECTED]> wrote: > Are you sure that the {request-param:username} in the sitemap > actually contains a value; what happens if you put actual data > in there eg. > > > > > >>> [EMAIL

Re:even Still problem Tomcat5.X + cocoon1.2.5

2004-09-21 Thread rasul m
Still the problem is there plz write the steps >try http://localhost:8080/cocoon/ >- Original Message - >From: "rasul m" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Tuesday, September 21, 2004 3:40 PM >Subject: Re:Still problem Tomcat5.X + cocoon1.2.5 >> Hi >> dont have a

Re: XSP, name of root element

2004-09-21 Thread Sylvain Wallez
Huber, Daniel wrote: Hi, is it right that in XSP I have no chance to specify the name of the root element to be generated dynamically? Yes, that's right: the root element of an XSP *has* to be static. Sylvain -- Sylvain Wallez Anyware Technologies http://www.apac

Re[2]: problem with passing variables - please help.

2004-09-21 Thread g[R]eK
<. Hi fabrizio! .> Tuesday, September 21, 2004, 10:55:29 AM, you wrote: fp> no, also in this way i cannot get any parameter 1. Simplify your code (instead of generating by the XSL try to read static file with template, simplify your query etc.) 2. Change your loglevel of core to debug [1] 3. Loo

Location of Recourses required in Sytelsheets.

2004-09-21 Thread news
Hello List. I' m using Cocoon to transform XML Files to PDFs using Saxon and FOP. In the XSL Stylesheets I'm using a external grafik: If I transfer a XML using this Stylesheet, the image is always missing: ERROR (2004-09-20) 14:07.29:875 [sitemap.fop] (/cocoon/test/test.pdf) http-80-Process

Re: Help: XPath to Jexl

2004-09-21 Thread oceatoon
Sylvain Wallez wrote: > oceatoon wrote: > >>Hi everyone >> >>I am having trouble retreiving an attribute in jexl. >>In jxpath, I can retreive it like this #{./description/@maxoc} >>but ${description.maxoc} doesn't work, can someone guide me please?? >> >> > > Jexl is a JavaBeans-oriented expre

mod_jk Help!

2004-09-21 Thread Richard Cunliffe
Hi, I am trying to get cocoon to work on port 80 instead of port 8080.I have installed the mod_jk file in the apache/module directory and altered the tomcat server.xml file and the apache httpd file. I have done this using the instructions provided at this address: http://johnturner.com/howto/win

Re: mod_jk Help!

2004-09-21 Thread Robin Wyles
Hi Richard, Some good tips on running Cocoon behind Apache can be found here: http://wiki.apache.org/cocoon/ApacheModProxy In my experience mod_proxy is an easier and more reliable way of connecting Cocoon to Apache. Robin On 21 Sep 2004, at 13:10, Richard Cunliffe wrote: Hi, I am trying to get

spaces in request-param

2004-09-21 Thread "Boisvert, Éric"
Greetings I'm trying to solve a problem that I think is a very basic functionality. I simply cannot believe there are no way to do this, but after 2 days googling aroung,. I still don't find a solution to this. I'm trying to pass request-parameter that contains spaces to a generator , using this

Database connection from custom Authenticator class

2004-09-21 Thread Martin Rusnak
Dear All, I use my own authenticator class which implements interface: org.apache.cocoon.webapps.authentication.components.Authenticator I configured it as it is described in the documentation. Here is the handler configuration: I want to do custom database query to verify the user cr

RE: Database connection from custom Authenticator class

2004-09-21 Thread Bart Molenkamp
Do a lookup with a service manager: manager.lookup(org.apache.avalon.excalibur.datasource.DataSourceComponen t.ROLE + "Selector"); Use the selector to select the data source, which is an instance of DataSourceComponent. Use getConnection() to get the database connection. Bart. > -Original M

Re: Database connection from custom Authenticator class

2004-09-21 Thread Martin Rusnak
Do a lookup with a service manager: manager.lookup(org.apache.avalon.excalibur.datasource.DataSourceComponen t.ROLE + "Selector"); But I don't have a reference to the service manager, at least I don't know how to get it. Here is MyAuthenticator class code: public class MyAuthenticator implements Au

Re: spaces in request-param

2004-09-21 Thread g[R]eK
<. Hi Éric! .> Tuesday, September 21, 2004, 2:11:37 PM, you wrote: BÉ> Greetings BÉ> I'm trying to solve a problem that I think is a very basic functionality. I BÉ> simply cannot believe there are no way to do this, but after 2 days googling BÉ> aroung,. I still don't find a solution to this.

RE: Database connection from custom Authenticator class

2004-09-21 Thread Bart Molenkamp
Implement the Serviceable interface. It forces you to implement the service() method, where you get a ServiceManager instance passed. You can store this in an instance var: Public class MyAuthenticator implements Authenticator, Serviceable { Private ServiceManager manager; ... public void se

Re: Database connection from custom Authenticator class

2004-09-21 Thread Jorg Heymans
Martin Rusnak wrote: Do a lookup with a service manager: manager.lookup(org.apache.avalon.excalibur.datasource.DataSourceComponen t.ROLE + "Selector"); But I don't have a reference to the service manager, at least I don't know how to get it. Here is MyAuthenticator class code: Authenticator class

Re: Resources from within XSLT

2004-09-21 Thread Jean-Baptiste Quenot
* Richard Lewis: > * Jean-Baptiste Quenot: > > > Shall I recommend not to omit the « map: » prefix? -- Jean-Baptiste Quenot Anyware Technologies http://www.anyware-tech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

RE: spaces in request-param

2004-09-21 Thread "Boisvert, Éric"
Thank for the tip, but I did find this trick and it did not work either Failed to load sitemap from file:/C:/jakarta-tomcat-4.1.29/webapps/cocoon/ngwd/search/sitemap.xmap org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/C:/jakarta-tomcat-4.1.29/webapps/cocoon/ngwd/search/

Re[2]: spaces in request-param

2004-09-21 Thread g[R]eK
<. Hi Éric! .> Tuesday, September 21, 2004, 3:50:01 PM, you wrote: BÉ> Thank for the tip, but I did find this trick and it did not work either BÉ> Failed to load sitemap from BÉ> file:/C:/jakarta-tomcat-4.1.29/webapps/cocoon/ngwd/search/sitemap.xmap BÉ> org.apache.cocoon.ProcessingException: Fa

RE: Help: XPath to Jexl

2004-09-21 Thread H . vanderLinden
Hi, Maybe I'm stating the perfectly obvious, but > ** > My doc is like this: > > text0 > text1 > text2 > text3 > > * > This is in my html_jx page: > > > >

URL space mappings

2004-09-21 Thread Simon Dutil
Hi list, I deployed Apache Lenya, wich is built upon cocoon, in OC4J. Keep reading, im almost sure this issue is related to cocoon config :) For every url that finish with a "/" i get a "404 not found" error. When deployed in tomcat, everything works fine and i think this is due to these lines

RE: Re[2]: spaces in request-param

2004-09-21 Thread "Boisvert, Éric"
hmmm.. new version = old bugs fixed, but new bugs to deal with... I'm afraid to ask, but is it possible to only have this module ? -- my limited understanding of inner working of Cocoon suggest that the .jar containig this class could replace the one I use for 2.1.5.. or am i just naive ? I'm rea

Re[4]: spaces in request-param

2004-09-21 Thread g[R]eK
<. Hi Éric! .> Tuesday, September 21, 2004, 4:42:40 PM, you wrote: BÉ> hmmm.. new version = old bugs fixed, but new bugs to deal with... BÉ> I'm afraid to ask, but is it possible to only have this module ? -- my BÉ> limited understanding of inner working of Cocoon suggest that the .jar BÉ> conta

Re[5]: spaces in request-param

2004-09-21 Thread g[R]eK
<. Hi g[R]eK! .> Tuesday, September 21, 2004, 5:07:44 PM, you wrote: gRe> <. Hi Éric! .> gRe> Tuesday, September 21, 2004, 4:42:40 PM, you wrote: gRe> But before wait few minutes, a will try play with sample you provided. I have something like this: http://cgdi-dev

RE: Help: XPath to Jexl

2004-09-21 Thread oceatoon
Yes offcourse Helma, thousand apologies, I tried to simplify the doc tags so it is "desc" instead of "description" [EMAIL PROTECTED] wrote: > Hi, > > Maybe I'm stating the perfectly obvious, but > >> ** >> My doc is like this: >> >> text0 >> text1 >> t

[CForms] dependency on headless server ?

2004-09-21 Thread Jorg Heymans
Just got this in my logs after migrating my app to a linux box. "resource://org/apache/cocoon/forms/flow/javascript/Form.js", line 47: uncaught JavaScript exception: at public_makeBMPForm (file:/opt/jetty-4.2.21/webapps/cocoon/app/bmplogo/flow/bmplogo.js, Line 14) at Form (resource://org/apache/c

Re: URL space mappings

2004-09-21 Thread [EMAIL PROTECTED]
Simon Dutil wrote: [...] For every url that finish with a "/" i get a "404 not found" error. When deployed in tomcat, everything works fine and i think this is due to these lines defined in tomcat web.xml. [...] Read this comment from Cocoon's main sitemap.xmap: -- [EMAIL PROTECTED] --

newbie

2004-09-21 Thread Jay
hi people, i am new to cocoon and this group. i have a few questions and 'm looking for answers. first let me start with a brief project background. i 'm working as dba for a project in which my colleague would be driving the cocooon engine and i would be handling the dbms aspect. my ques are as

Re: URL space mappings

2004-09-21 Thread Simon Dutil
On Tue, 21 Sep 2004 18:42:15 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Read this comment from Cocoon's main sitemap.xmap: > > > Why is it working with Tomcat? Does it do the automatic translation of URLs? Then, how should i write the pattern for a trailing slash ?

Re: URL space mappings

2004-09-21 Thread [EMAIL PROTECTED]
Simon Dutil wrote: Why is it working with Tomcat? Does it do the automatic translation of URLs? Tomcat isn't Cocoon. Then, how should i write the pattern for a trailing slash ? With: Without: -- [EMAIL PROTECTED] -

RE: Re[5]: spaces in request-param

2004-09-21 Thread "Boisvert, Éric"
cool.. thanks now I have to figure out the compiling process. I dumped the 2 files in the ..\components\module\input directory and start a build .\build clean then .\build.bat -Dinclude.webapp.libs=yes webapp and sure enough, compiler says: C:\NGWD\ToInstall\cocoon-2.1.5.1\src\java\org\apac

Re: URL space mappings

2004-09-21 Thread Simon Dutil
On Tue, 21 Sep 2004 20:20:00 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Simon Dutil wrote: > > Why is it working with Tomcat? Does it do the automatic translation of URLs? > > Tomcat isn't Cocoon. > Sorry, it was just in case you had knew. Your right this mailing list isnt for tomcat

Re: [CForms] dependency on headless server ?

2004-09-21 Thread Upayavira
Jorg Heymans wrote: Just got this in my logs after migrating my app to a linux box. "resource://org/apache/cocoon/forms/flow/javascript/Form.js", line 47: uncaught JavaScript exception: at public_makeBMPForm (file:/opt/jetty-4.2.21/webapps/cocoon/app/bmplogo/flow/bmplogo.js, Line 14) at Form (re

Re: Location of Recourses required in Sytelsheets.

2004-09-21 Thread Derek Hohls
Jan Unfortunately absolute references to file paths *are* required by FOP... this has been discussed many times in this group; you can pass in the path as an external parameter value to your stylesheet; say from the sitemap, in order to ease migration. You can then add an extra transformation step

Re: newbie

2004-09-21 Thread gounis
On Tue, 21 Sep 2004, Jay wrote: > hi people, > i am new to cocoon and this group. i have a few questions and 'm looking > for answers. > first let me start with a brief project background. i 'm working as dba > for a project in which my colleague would be driving the cocooon engine > and i woul

Re: [CForms] dependency on headless server ?

2004-09-21 Thread Joerg Heinicke
On 21.09.2004 20:53, Upayavira wrote: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. the form works when i do the -Djava.awt.headless trick. Is this a known dependency? Yup. What exactly introduced this dependency? I know Batik needs

Re: Database connection from custom Authenticator class

2004-09-21 Thread Steinar Rune Eriksen
Personally I made a Generator that generates the XML used in the portal to identify users and roles. It authenticates against a DB inside a session bean, and this method returns the role of the user sent back again into the portal framework through the XML. public class AuthenticationGenerator

Re: [CForms] dependency on headless server ?

2004-09-21 Thread Sylvain Wallez
Joerg Heinicke wrote: On 21.09.2004 20:53, Upayavira wrote: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. the form works when i do the -Djava.awt.headless trick. Is this a known dependency? Yup. What exactly introduced this depend

Re:Still problem Tomcat5.X + cocoon1.2.5

2004-09-21 Thread yssr
--- rasul m <[EMAIL PROTECTED]> wrote: Do one thing simply 1.Search in cocoon for webapps 2.Then change that foldername to cocoon 3.copy that to tomcat webapps now start tomcat url: http://localhost:8080/cocoon problem solved > Hi > dont have after cocoon.war folder but it is as > archi

special characters

2004-09-21 Thread Adriano Smith
When passing values as url parameters is it possible to pass specialcharacters such as & , + and #? for example theurl http://xxx/mail?key=keyvalue&name=something how can specialcharacters such as &,# and + be included in the keyvalue? im not able touse them as they are considered as delimiters