RuntimeException : The sitemap is null
Hi folks, I'm currently performing some load tests on the following configuration : cocoon 2.0.4 resin 2.1.9 SUN JDK 1.4.003 Linux (RH 9) After 5-10 minutes, I got the following well known RuntimeException : The sitemap is null. I've seen on the cocoon-dev archive that a bug report has been recently posted about this, but I just would like to know : - if this bug is planned to be fixed in the 2.0.4 or in the 2.1 ? - if there are some workaround to avoid this problem ? Any hint (change JVM, system, servlet engine) ? Many thanks for your help Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie question with wildcard in sitemap
hi cocooners, i have the following directory structrue: cocoon:| |protected- |-docs - |-home |-fr |. |-stylsheets |-descriptors |-css and the followinf sitemap: map:match pattern=do-login !-- first validate whether submitted values are ok -- map:act type=form-validator map:parameter name=descriptor value=context://protected/descriptors/params.xml/ map:parameter name=validate value=username/ !-- now try to log in -- map:act type=db-authenticator map:parameter name=descriptor value=context://protected/descriptors/auth.xml/ !-- now go to protected area -- map:redirect-to uri=home/home.section/ /map:act /map:act !-- something was wrong, try it again -- map:redirect-to uri=error/ /map:match * after a successfull login i call the uri home/home.section and then i have the following match: map:match pattern=*/*.* !-- first validate whether user has logged in -- map:act type=session-validator map:parameter name=descriptor value=context://protected//descriptors/params.xml/ map:parameter name=validate value=username,department_id,theme/ !-- generate protected content -- !-- map:generate type=serverpages src=docs/protected.xsp/ -- !-- map:transform src=stylesheets/{theme}-page2html.xsl/ -- map:generate src=docs/home/home.xml/ map:transform src=stylesheets/page.xsl map:parameter name=section value=home/ map:parameter name=toc-file value=../docs/toc.xml/ map:parameter name=base-url value=/cocoon/protected/ /map:transform map:transform src=stylesheets/menupage.xsl map:parameter name=section value=home/ map:parameter name=request-url value=home.section/ map:parameter name=toc-file value=../docs/toc.xml/ map:parameter name=css-stylesheet value=default.css/ map:parameter name=base-url value=/cocoon/protected/ /map:transform map:serialize/ /map:act !-- something was wrong, redirect to login page -- map:redirect-to uri=login/ /map:match * well this works fine, nut i want to substitute map:generate src=docs/home/home.xml / with map:generate src=docs/{1}/home.xml / because i have many ressources, but this dont work :-(, why that ? thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question with wildcard in sitemap
You have a map:act/ surrounding not only this map:generate/. This map:act/ makes it necessary to use {../1}: map:generate src=docs/{../1}/home.xml / Regards, Joerg Sliman Bouchareb wrote: hi cocooners, i have the following directory structrue: cocoon:| |protected- |-docs - |-home |-fr |. |-stylsheets |-descriptors |-css and the followinf sitemap: map:match pattern=do-login !-- first validate whether submitted values are ok -- map:act type=form-validator map:parameter name=descriptor value=context://protected/descriptors/params.xml/ map:parameter name=validate value=username/ !-- now try to log in -- map:act type=db-authenticator map:parameter name=descriptor value=context://protected/descriptors/auth.xml/ !-- now go to protected area -- map:redirect-to uri=home/home.section/ /map:act /map:act !-- something was wrong, try it again -- map:redirect-to uri=error/ /map:match * after a successfull login i call the uri home/home.section and then i have the following match: map:match pattern=*/*.* !-- first validate whether user has logged in -- map:act type=session-validator map:parameter name=descriptor value=context://protected//descriptors/params.xml/ map:parameter name=validate value=username,department_id,theme/ !-- generate protected content -- !-- map:generate type=serverpages src=docs/protected.xsp/ -- !-- map:transform src=stylesheets/{theme}-page2html.xsl/ -- map:generate src=docs/home/home.xml/ map:transform src=stylesheets/page.xsl map:parameter name=section value=home/ map:parameter name=toc-file value=../docs/toc.xml/ map:parameter name=base-url value=/cocoon/protected/ /map:transform map:transform src=stylesheets/menupage.xsl map:parameter name=section value=home/ map:parameter name=request-url value=home.section/ map:parameter name=toc-file value=../docs/toc.xml/ map:parameter name=css-stylesheet value=default.css/ map:parameter name=base-url value=/cocoon/protected/ /map:transform map:serialize/ /map:act !-- something was wrong, redirect to login page -- map:redirect-to uri=login/ /map:match * well this works fine, nut i want to substitute map:generate src=docs/home/home.xml / with map:generate src=docs/{1}/home.xml / because i have many ressources, but this dont work :-(, why that ? thanx -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where is the sitemap dtd?
Can anybody point me to a location where I can download the Document Type Definition (DTD) for the cocoon sitemap. I don't know, maybe I am just blind, but I could't find it anywhere. Regards, Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sitemap map:resource
Hello, In my sitemap, I have some similar pipelines so I have decided to use the map:resource element But I read that when you make the map:call the pipeline finish in the map:resource. So this example is not working : map:components .. map:resources map:resource name=modifyUser map:transform ... /map:resource /map:resources ... /map:components map:match map:generate ... map:call resource=modifyUser/ map:serialize/ /map:match Is there antoher way to do that. (Reuse some part in the sitemap) ? Thanks Lionel Lionel CRINE Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reference of transforms in sub-sitemap
In a subsite map, I'd like to use an xsl in a transform clause that is off under a different part of my project. Transform entries in subsite maps use relative paths, so I have all mine reading something like this: map:transform src=stylesheets/sheet.xsl/ So 'stylesheets' is a directory under the applications directory, as defined in the main sitemap. Can I reference a a stylesheet that is off in a different subsite instead? Something like: map:transform src=../otherSubsite/stylesheets/sheet.xsl/ Maybe I'm going about this incorrectly. I'd just like to have some stylesheets be globally available in my various sub-applications. Many thanks for any advice. Jeff Sexton The ODS Companies [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reference of transforms in sub-sitemap
On Tue, 24 Jun 2003, Andreas Hartmann wrote: But I would rather suggest to use a common location-independent cocoon:// call: map:transform src=cocoon://stylesheets/sheet.xsl/ The common stylesheets would be served by your main sitemap (or a special sub-sitemap). This enables you to change the stylesheet location without affecting your applications. That looks much better, thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
split in sitemap
Is there a way to make a split for a parameter like: input value=abc\def name=test I want something a {request-param} with a split the \ and get the first part (only abc ) Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] Sent: Wednesday, June 18, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: RE: concat in sitemap? I will try with value={request-param:concat(servername,'\',name)}. But I think I have a problem getting parameter servername. I don't know why, I just added this input in the login.xml ... field name=name type=text length=24 description=Name/ field name=passwordtype=password length=10 description=Password/ field name=servername type=text length=24 value=CORPROOT description=LDAP Domain/ ... The output seems correct : ... form ... input type=text name=name.../ input type=password name=password.../ input type=text name=servername.../ /form ... I remarked it because in the sunrise-user.xsl I wrote : xsl:param name=password/ xsl:param name=name/ xsl:param name=servername/ and then testxsl:value-of select=$servername//test --returns nothing test2xsl:value-of select=$name//test2 --returns the right name -Original Message- From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:07 AM To: [EMAIL PROTECTED] Subject: Re: concat in sitemap? Try this one: map:parameter name=rootdn value={request-param:concat(serverurl, '\', name)}}/ Take a look at the Input Modules samples at http://localhost:/cocoon/samples/modules . There are several examples of XPath usage with input modules in the sitemap. Regards, Konstantin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:20 Subject: concat in sitemap? Hello, I wrote a little time ago because I had problems with my parameters in the sitemap. I thought maybe I had to do like in XSL with a concat function or something like that? That's what I want to get : map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ But this way it doesn't work. Please help!!! Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: split in sitemap
I see two ways: - write an action - write an input module Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: split in sitemap Is there a way to make a split for a parameter like: input value=abc\def name=test I want something a {request-param} with a split the \ and get the first part (only abc ) Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:cocoon-users-return-52265-Maxime.Gheysen=swisscom.com@ xml.apache .org] Sent: Wednesday, June 18, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: RE: concat in sitemap? I will try with value={request-param:concat(servername,'\',name)}. But I think I have a problem getting parameter servername. I don't know why, I just added this input in the login.xml ... field name=name type=text length=24 description=Name/ field name=passwordtype=password length=10 description=Password/ field name=servername type=text length=24 value=CORPROOT description=LDAP Domain/ ... The output seems correct : ... form ... input type=text name=name.../ input type=password name=password.../ input type=text name=servername.../ /form ... I remarked it because in the sunrise-user.xsl I wrote : xsl:param name=password/ xsl:param name=name/ xsl:param name=servername/ and then testxsl:value-of select=$servername//test --returns nothing test2xsl:value-of select=$name//test2 --returns the right name -Original Message- From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:07 AM To: [EMAIL PROTECTED] Subject: Re: concat in sitemap? Try this one: map:parameter name=rootdn value={request-param:concat(serverurl, '\', name)}}/ Take a look at the Input Modules samples at http://localhost:/cocoon/samples/modules . There are several examples of XPath usage with input modules in the sitemap. Regards, Konstantin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:20 Subject: concat in sitemap? Hello, I wrote a little time ago because I had problems with my parameters in the sitemap. I thought maybe I had to do like in XSL with a concat function or something like that? That's what I want to get : map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ But this way it doesn't work. Please help!!! Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: split in sitemap
But is there no function to do that? Because I saw on a sample (sampes/modules) that a concat function is used: map:parameter name=session [truncated] value={request:concat('org. ... .', substring(session, 36))} / So maybe there is a split function also? -Original Message- From: Reinhard Pötz [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 12:05 PM To: [EMAIL PROTECTED] Subject: RE: split in sitemap I see two ways: - write an action - write an input module Reinhard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: split in sitemap Is there a way to make a split for a parameter like: input value=abc\def name=test I want something a {request-param} with a split the \ and get the first part (only abc ) Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:cocoon-users-return-52265-Maxime.Gheysen=swisscom.com@ xml.apache .org] Sent: Wednesday, June 18, 2003 10:18 AM To: [EMAIL PROTECTED] Subject: RE: concat in sitemap? I will try with value={request-param:concat(servername,'\',name)}. But I think I have a problem getting parameter servername. I don't know why, I just added this input in the login.xml ... field name=name type=text length=24 description=Name/ field name=passwordtype=password length=10 description=Password/ field name=servername type=text length=24 value=CORPROOT description=LDAP Domain/ ... The output seems correct : ... form ... input type=text name=name.../ input type=password name=password.../ input type=text name=servername.../ /form ... I remarked it because in the sunrise-user.xsl I wrote : xsl:param name=password/ xsl:param name=name/ xsl:param name=servername/ and then testxsl:value-of select=$servername//test --returns nothing test2xsl:value-of select=$name//test2 --returns the right name -Original Message- From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:07 AM To: [EMAIL PROTECTED] Subject: Re: concat in sitemap? Try this one: map:parameter name=rootdn value={request-param:concat(serverurl, '\', name)}}/ Take a look at the Input Modules samples at http://localhost:/cocoon/samples/modules . There are several examples of XPath usage with input modules in the sitemap. Regards, Konstantin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:20 Subject: concat in sitemap? Hello, I wrote a little time ago because I had problems with my parameters in the sitemap. I thought maybe I had to do like in XSL with a concat function or something like that? That's what I want to get : map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ But this way it doesn't work. Please help!!! Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Failed to compile sitemap when using map:call in error handlers ?
Hi folks, I tried to compile the following (dummy) pipeline with Cocoon 2.0.4 : ... map:resources map:resource name=test map:serialize/ /map:resource /map:resources ... map:pipeline map:match pattern=dummy map:generate src=dummy.html/ map:serialize/ /map:match map:handle-errors map:transform src=stylesheets/system/error2html.xsl/ map:call resource=test/ /map:handle-errors /map:pipeline The compilation of the sitemap failed with the following message : Exception: org.apache.cocoon.components.language.LanguageException: Error compiling proxy_xmap: Line 829, column 91: variable cocoon_view not found in class org.apache.cocoon.www.proxy_xmap Line 0, column 0: 1 error If I replace the map:call by a map:serialize, the compilation works fine. Is it forbidden to use resource inside an error handler ? Thanks for your help. Gabriel PS : I'm using 2.0.4 on Tomcat 3.3.1a with SUN jdk 1.4.0 on W2k - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: split in sitemap
[EMAIL PROTECTED] wrote: But is there no function to do that? Because I saw on a sample (sampes/modules) that a concat function is used: map:parameter name=session [truncated] value={request:concat('org. ... .', substring(session, 36))} / So maybe there is a split function also? not all input modules let you use XPath expressions, and, AFAIK, the request parameter module is one of those :( Regards, -- Luca Morandini GIS Consultant [EMAIL PROTECTED] http://space.virgilio.it/kumora/index.html -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mounting, but with shared sitemap?
The mount tag allows sitemaps to be sub-divided, but it also allows the request context (directory and url paths) to be changed. Is there any way to get the cocoon to mount an application directory (i.e. switch context), but still use a common sitemap file? I need a number of virtual hosts all running the same cocoon app, but with different content; like: base-dir sitemap.xmap (a simple virtual host switcher) common.xmap (the file to be mounted for each host-dir) host1-dir host2-dir I get this to work at the moment using symbolic links from the host-dir to the base-dir, but that seems like a hack, and may come to haunt me later - like when I try to deploy this stuff. Any help would be much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mounting, but with shared sitemap?
On Fri, 2003-06-20 at 15:36, Upayavira wrote: On 20 Jun 2003 at 15:17, Dominic Chambers wrote: The mount tag allows sitemaps to be sub-divided, but it also allows the request context (directory and url paths) to be changed. Is there any way to get the cocoon to mount an application directory (i.e. switch context), but still use a common sitemap file? snip/ Presumably what you're saying is that you want to be able to mount the common.xmap, but for that sitemap to be able to find out the name of the directory that it was mounted to, so that it can be used in locating other resources? Is that right? Yes. Exactly that. Is that possible? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mounting, but with shared sitemap?
Presumably what you're saying is that you want to be able to mount the common.xmap, but for that sitemap to be able to find out the name of the directory that it was mounted to, so that it can be used in locating other resources? Is that right? Yes. Exactly that. Is that possible? Hmm. As I was writing that I was hoping you weren't going to say yes!! Anyway, I have built something similar recently, although I didn't have the two sitemaps, I did it all with one. I used stuff like: map:match pattern=*/page.html map:generate src=skins/{1}/config.xml/ map:transform src=common/prepare.xsl/ map:transform src=skins/{1}/skin.xsl map:parameter name=skin value={1}/ /map:transform map:serialize type=html/ /map:match There you have a site that'll work for the following structure: root/ sitemap.xmap skins/ foo/ config.xml skin.xsl bar/ config.xml skin.xsl common/ prepare.xsl With a system like that, you can have some files accessed from your 'skins' directory structure, and others from your common shared files, depending upon whether you want them shared or separate. Then you just need an error handling pipeline to catch those situations where the URL doesn't match a valid skin. Make sense? Does this do what you want? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mounting, but with shared sitemap?
On Fri, 2003-06-20 at 16:25, Upayavira wrote: Yes. Exactly that. Is that possible? Hmm. As I was writing that I was hoping you weren't going to say yes!! Anyway, I have built something similar recently, although I didn't have the two sitemaps, I did it all with one. I used stuff like: map:match pattern=*/page.html map:generate src=skins/{1}/config.xml/ map:transform src=common/prepare.xsl/ map:transform src=skins/{1}/skin.xsl map:parameter name=skin value={1}/ /map:transform map:serialize type=html/ /map:match There you have a site that'll work for the following structure: root/ sitemap.xmap skins/ foo/ config.xml skin.xsl bar/ config.xml skin.xsl common/ prepare.xsl Yes, that is very clever, I didn't think of that; that even works if you need to match multiple pages by using two wildcards, like */**.html. but ... With a system like that, you can have some files accessed from your 'skins' directory structure, and others from your common shared files, depending upon whether you want them shared or separate. Then you just need an error handling pipeline to catch those situations where the URL doesn't match a valid skin. Make sense? Does this do what you want? Almost, but I need to switch based on host name. Perhaps if I could make the result of the host name comparison a variable, like {1} is for wildcard matches, that would work perfectly. I just tried this experiemnt: map:pipeline map:match pattern= map:select type=host map:redirect-to uri={host}/test.html/ /map:select /map:match /map:pipeline where host was a previously defined HostSelector. Of course it didn't work! Do you know of another way? I kind of need variables, although I would probably think less highly of Cocoon if it provided them: who wants to program in XML? Thanks for your help! Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: mounting, but with shared sitemap?
Hi, maybe this is what you are looking for: map:pipeline map:match pattern=** map:select type=host map:when test=pelzfashion map:mount uri-prefix= src=file:///d:/data/www/pelz-fashion/ check-reload=true/ /map:when map:when test=raffy map:mount uri-prefix= src=file:///d:/data/www/raffy/ check-reload=true/ /map:when map:otherwise map:mount uri-prefix= src=file:///d:/data/www/cocoon/ check-reload=true/ /map:otherwise /map:select /map:match /map:pipeline Hope that helps, Raffy -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 20. Juni 2003 16:31 An: [EMAIL PROTECTED] Betreff: Re: mounting, but with shared sitemap? On Fri, 2003-06-20 at 16:25, Upayavira wrote: Yes. Exactly that. Is that possible? Hmm. As I was writing that I was hoping you weren't going to say yes!! Anyway, I have built something similar recently, although I didn't have the two sitemaps, I did it all with one. I used stuff like: map:match pattern=*/page.html map:generate src=skins/{1}/config.xml/ map:transform src=common/prepare.xsl/ map:transform src=skins/{1}/skin.xsl map:parameter name=skin value={1}/ /map:transform map:serialize type=html/ /map:match There you have a site that'll work for the following structure: root/ sitemap.xmap skins/ foo/ config.xml skin.xsl bar/ config.xml skin.xsl common/ prepare.xsl Yes, that is very clever, I didn't think of that; that even works if you need to match multiple pages by using two wildcards, like */**.html. but ... With a system like that, you can have some files accessed from your 'skins' directory structure, and others from your common shared files, depending upon whether you want them shared or separate. Then you just need an error handling pipeline to catch those situations where the URL doesn't match a valid skin. Make sense? Does this do what you want? Almost, but I need to switch based on host name. Perhaps if I could make the result of the host name comparison a variable, like {1} is for wildcard matches, that would work perfectly. I just tried this experiemnt: map:pipeline map:match pattern= map:select type=host map:redirect-to uri={host}/test.html/ /map:select /map:match /map:pipeline where host was a previously defined HostSelector. Of course it didn't work! Do you know of another way? I kind of need variables, although I would probably think less highly of Cocoon if it provided them: who wants to program in XML? Thanks for your help! Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mounting, but with shared sitemap?
Dominic Chambers wrote: Almost, but I need to switch based on host name. Perhaps if I could make the result of the host name comparison a variable, like {1} is for wildcard matches, that would work perfectly. I just tried this experiemnt: Try (Cocoon = 2.0.4) map:pipeline map:match pattern= map:redirect-to uri={request:serverName}/test.html/ /map:match /map:pipeline Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
concat in sitemap?
Hello, I wrote a little time ago because I had problems with my parameters in the sitemap. I thought maybe I had to do like in XSL with a concat function or something like that? That's what I want to get : map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ But this way it doesn't work. Please help!!! Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: concat in sitemap?
Try this one: map:parameter name=rootdn value={request-param:concat(serverurl, '\', name)}}/ Take a look at the Input Modules samples at http://localhost:/cocoon/samples/modules . There are several examples of XPath usage with input modules in the sitemap. Regards, Konstantin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:20 Subject: concat in sitemap? Hello, I wrote a little time ago because I had problems with my parameters in the sitemap. I thought maybe I had to do like in XSL with a concat function or something like that? That's what I want to get : map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ But this way it doesn't work. Please help!!! Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: concat in sitemap?
I will try with value={request-param:concat(servername,'\',name)}. But I think I have a problem getting parameter servername. I don't know why, I just added this input in the login.xml ... field name=name type=text length=24 description=Name/ field name=passwordtype=password length=10 description=Password/ field name=servername type=text length=24 value=CORPROOT description=LDAP Domain/ ... The output seems correct : ... form ... input type=text name=name.../ input type=password name=password.../ input type=text name=servername.../ /form ... I remarked it because in the sunrise-user.xsl I wrote : xsl:param name=password/ xsl:param name=name/ xsl:param name=servername/ and then testxsl:value-of select=$servername//test --returns nothing test2xsl:value-of select=$name//test2 --returns the right name -Original Message- From: Konstantin Piroumian [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:07 AM To: [EMAIL PROTECTED] Subject: Re: concat in sitemap? Try this one: map:parameter name=rootdn value={request-param:concat(serverurl, '\', name)}}/ Take a look at the Input Modules samples at http://localhost:/cocoon/samples/modules . There are several examples of XPath usage with input modules in the sitemap. Regards, Konstantin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:20 Subject: concat in sitemap? Hello, I wrote a little time ago because I had problems with my parameters in the sitemap. I thought maybe I had to do like in XSL with a concat function or something like that? That's what I want to get : map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ But this way it doesn't work. Please help!!! Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2.1 migration problem with sub-sitemap
Hi, I have migrated a sub-sitemap from Cocoon 2.0.4 to 2.1m3. With 2.0.4 everything worked fine, now with 2.1 I only get empty pages. The reason seems to be that the sub-sitemap in cocoon/sims is never really called. Whenever I call a URL with sims/something I get empty page with NO errors although in logkit.xconf I have set everything on DEBUG. I saw one big difference between 2.0.4 and 2.1 and that is that sub-sitemaps seem to be automatically mounted with a generic pipeline. The sub-sitemap example does not exist anymore, the only sub-sitemap available is samples. Does one have to declare now really ALL components in each sub-sitemap that it uses, because I get DEBUG messages that say that a Selector has not found component for hint [request] or [session] for example? But when I look into the samples sitemap then that does not declare any components although it definitely uses some? So what is different in 2.1? Please help, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.1 migration problem with sub-sitemap
Did you add map:pipes to the map:components section in the root sitemap? -Original Message- From: Peter Klotz [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 18. Juni 2003 11:48 To: [EMAIL PROTECTED] Subject: Cocoon 2.1 migration problem with sub-sitemap Hi, I have migrated a sub-sitemap from Cocoon 2.0.4 to 2.1m3. With 2.0.4 everything worked fine, now with 2.1 I only get empty pages. The reason seems to be that the sub-sitemap in cocoon/sims is never really called. Whenever I call a URL with sims/something I get empty page with NO errors although in logkit.xconf I have set everything on DEBUG. I saw one big difference between 2.0.4 and 2.1 and that is that sub-sitemaps seem to be automatically mounted with a generic pipeline. The sub-sitemap example does not exist anymore, the only sub-sitemap available is samples. Does one have to declare now really ALL components in each sub-sitemap that it uses, because I get DEBUG messages that say that a Selector has not found component for hint [request] or [session] for example? But when I look into the samples sitemap then that does not declare any components although it definitely uses some? So what is different in 2.1? Please help, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Emacs, xsp, sitemap -- validation/modes
hi, anybody who's got a decent setup with emacs as far as editing modes and validation for XSPs, and sitemap etc? any ideas? i've even tried validating against the sitemap schema from http://outerthought.net/sitemap/ but i'm getting errors. considered converting to a dtd and using nsgmls from within emacs to validate but didn't get very far (lossy conversion and everything..) i'm trying to reduce the edit/test-under-tomcat-only-to-discover-i-forgot-a-tag cycle to edit/validate/test-under-tomcat. i would prefer a solution for using from emacs+command-line. if not, then just from the command line. that way i can do 'em from a script in batch etc. any ideas? anoop. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
combine parameter variables in sitemap
Is it possible to add variable (request-param) after text or after another variable? Like : map:parameter name=var1 value={request-param:myvar}-{request-param:mynum}/ or map:parameter name=var1 value={request-param:myvar}-1/ Because neighter of this doesn't works. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
get request attribute in sitemap
Hi all, Is possible to get request attribute in sitemap? some like to get request parameter: map:match pattern=delete_account.html map:act set=process map:parameter name=descriptor value=descriptors/form_account.xml/ /map:act !-- ??? some like it -- map:act type=request map:parameter name=attributes value=true/ map:redirect-to uri=account.html?account={my_request_attribute}/ /map:act !-- map:act type=request map:parameter name=parameters value=true/ map:redirect-to uri=account.html?account={my_request_parameter}/ /map:act -- /map:match any advice, helps, Thanks, Hill ps: i use 2.1m3-dev __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get request attribute in sitemap
Do you mean request parameters? There are three input modules that allow access to request details, request, request-param, and request-attr. I've only used request param, with which you can get get/post parameters from the request, e.g: http://server/cocoon/page?name=peter You can use 'peter' in your sitemap like this: map:transform src=xsl/foo.xsl map:parameter name=name value={request-param:name}/ /map:transform So, Peter will be passed to the transform as a parameter. Is this what you're after? Upayavira On 17 Jun 2003 at 3:36, Hill Karimov wrote: Hi all, Is possible to get request attribute in sitemap? some like to get request parameter: map:match pattern=delete_account.html map:act set=process map:parameter name=descriptor value=descriptors/form_account.xml/ /map:act !-- ??? some like it -- map:act type=request map:parameter name=attributes value=true/ map:redirect-to uri=account.html?account={my_request_attribute}/ /map:act !-- map:act type=request map:parameter name=parameters value=true/ map:redirect-to uri=account.html?account={my_request_parameter}/ /map:act -- /map:match any advice, helps, Thanks, Hill ps: i use 2.1m3-dev __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get request attribute in sitemap
No, I want get request attribute that I set in action : request.setAttribute(my_request_attribute, some_value) is it possible? Thanks, Hill --- Upayavira [EMAIL PROTECTED] wrote: Do you mean request parameters? There are three input modules that allow access to request details, request, request-param, and request-attr. I've only used request param, with which you can get get/post parameters from the request, e.g: http://server/cocoon/page?name=peter You can use 'peter' in your sitemap like this: map:transform src=xsl/foo.xsl map:parameter name=name value={request-param:name}/ /map:transform So, Peter will be passed to the transform as a parameter. Is this what you're after? Upayavira On 17 Jun 2003 at 3:36, Hill Karimov wrote: Hi all, Is possible to get request attribute in sitemap? some like to get request parameter: map:match pattern=delete_account.html map:act set=process map:parameter name=descriptor value=descriptors/form_account.xml/ /map:act !-- ??? some like it -- map:act type=request map:parameter name=attributes value=true/ map:redirect-to uri=account.html?account={my_request_attribute}/ /map:act !-- map:act type=request map:parameter name=parameters value=true/ map:redirect-to uri=account.html?account={my_request_parameter}/ /map:act -- /map:match any advice, helps, Thanks, Hill ps: i use 2.1m3-dev __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get request attribute in sitemap
OK thanks request-attr is works, map:redirect-to uri=account.html?account={request-attr:my_request_attribute}/ Thanks, Hill --- Upayavira [EMAIL PROTECTED] wrote: Do you mean request parameters? There are three input modules that allow access to request details, request, request-param, and request-attr. I've only used request param, with which you can get get/post parameters from the request, e.g: http://server/cocoon/page?name=peter You can use 'peter' in your sitemap like this: map:transform src=xsl/foo.xsl map:parameter name=name value={request-param:name}/ /map:transform So, Peter will be passed to the transform as a parameter. Is this what you're after? Upayavira On 17 Jun 2003 at 3:36, Hill Karimov wrote: Hi all, Is possible to get request attribute in sitemap? some like to get request parameter: map:match pattern=delete_account.html map:act set=process map:parameter name=descriptor value=descriptors/form_account.xml/ /map:act !-- ??? some like it -- map:act type=request map:parameter name=attributes value=true/ map:redirect-to uri=account.html?account={my_request_attribute}/ /map:act !-- map:act type=request map:parameter name=parameters value=true/ map:redirect-to uri=account.html?account={my_request_parameter}/ /map:act -- /map:match any advice, helps, Thanks, Hill ps: i use 2.1m3-dev __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get request attribute in sitemap
Hi, I have a question about the usage of schematron languages within Cocoon/XMLForms. I have an AddresBean which I use as the XMLForm model. It containts 2 variables: - street (also getter and setter) - housenumber (also getter and setter) I want to show a message behind a 'street' input field in my form when the 'housenumber' field is empty. I've tried to do it with, ../housenumber, but this doesn't work! See the code below: pattern name=Old Address Pattern id=addressPattern rule context=/street assert test=string-length(../housenumber) gt; 0Address is required./assert /rule /pattern Would someone have a sollution of how to accomplish this? Or could someone explain why this schematron statement doesn't work ? Cheers! -- Many thanks in advance, Robert Kromkamp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: get request attribute in sitemap
I have also a question according this. Why isn't it possible to use multiple parameters like ...value={request-param:name}-{request-param:surname}/ -Returns an error -Original Message- From: Hill Karimov [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Re: get request attribute in sitemap OK thanks request-attr is works, map:redirect-to uri=account.html?account={request-attr:my_request_attribute}/ Thanks, Hill --- Upayavira [EMAIL PROTECTED] wrote: Do you mean request parameters? There are three input modules that allow access to request details, request, request-param, and request-attr. I've only used request param, with which you can get get/post parameters from the request, e.g: http://server/cocoon/page?name=peter You can use 'peter' in your sitemap like this: map:transform src=xsl/foo.xsl map:parameter name=name value={request-param:name}/ /map:transform So, Peter will be passed to the transform as a parameter. Is this what you're after? Upayavira On 17 Jun 2003 at 3:36, Hill Karimov wrote: Hi all, Is possible to get request attribute in sitemap? some like to get request parameter: map:match pattern=delete_account.html map:act set=process map:parameter name=descriptor value=descriptors/form_account.xml/ /map:act !-- ??? some like it -- map:act type=request map:parameter name=attributes value=true/ map:redirect-to uri=account.html?account={my_request_attribute}/ /map:act !-- map:act type=request map:parameter name=parameters value=true/ map:redirect-to uri=account.html?account={my_request_parameter}/ /map:act -- /map:match any advice, helps, Thanks, Hill ps: i use 2.1m3-dev __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
could not pass some parameters Sitemap
I use a request-param method in my sitemap. On a page I have three text boxes (name, password, serverurl). In the sitemap I have following : map:transform type=ldap map:parameter name=serverurl value=ldap://{request-param:serverurl}.NET/ map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:name}))/ /map:transform Here I can see in the log that the password parameter is correctly get, but neighter the name neighter the serverurl are get. Does somebody know why? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
parameter value syntax in sitemap
Hello. How is it possible in the sitemap to combine values with text and requests? eg: map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ This example returns an error. I also tried with {request-param:serverurl}\\{request-param:name} but without result... thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: parameter value syntax in sitemap
Slash instead of back slash?? Joerg [EMAIL PROTECTED] wrote: Hello. How is it possible in the sitemap to combine values with text and requests? eg: map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ This example returns an error. I also tried with {request-param:serverurl}\\{request-param:name} but without result... thanks -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: parameter value syntax in sitemap
I don't think, because the login name has to be : Domain\User It works with CORPROOT\TFRGHM00 But not with {request-param:serverurl}\{request-param:name} where serverurl=CORPROOT and name=TFRGHM00 -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 3:42 PM To: [EMAIL PROTECTED] Subject: Re: parameter value syntax in sitemap Slash instead of back slash?? Joerg [EMAIL PROTECTED] wrote: Hello. How is it possible in the sitemap to combine values with text and requests? eg: map:parameter name=rootdn value={request-param:serverurl}\{request-param:name}/ This example returns an error. I also tried with {request-param:serverurl}\\{request-param:name} but without result... thanks -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sitemap parameters
That works : map:parameter name=rootdn value={request-param:name}/ and the value entered (for name is CORPROOT\TFRGHM00) but that don't : map:parameter name=rootdn value=CORPROOT\{request-param:name}/ and the value entered (for name is TFRGHM00) Why? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sitemap parameters
My guess would be that the \ in CORPROOT\{request-param:name} escapes the next character (whether it should or not I don't know) and so the variable interpolation is not happening. Check the sitemap log in WEB-INF/logs, it might have an indication as to what is happening exactly Can you try escaping the \ ie put CORPROOT\\{request-param:name} ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Freitag, 13. Juni 2003 16:02 To: [EMAIL PROTECTED] Subject: Sitemap parameters That works : map:parameter name=rootdn value={request-param:name}/ and the value entered (for name is CORPROOT\TFRGHM00) but that don't : map:parameter name=rootdn value=CORPROOT\{request-param:name}/ and the value entered (for name is TFRGHM00) Why? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sitemap parameters
don't work the \\ ... Is there no other way? Like asd + {request-param:asdf} or something like that? -Original Message- From: Jorg Heymans [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:07 PM To: '[EMAIL PROTECTED]' Subject: RE: Sitemap parameters My guess would be that the \ in CORPROOT\{request-param:name} escapes the next character (whether it should or not I don't know) and so the variable interpolation is not happening. Check the sitemap log in WEB-INF/logs, it might have an indication as to what is happening exactly Can you try escaping the \ ie put CORPROOT\\{request-param:name} ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Freitag, 13. Juni 2003 16:02 To: [EMAIL PROTECTED] Subject: Sitemap parameters That works : map:parameter name=rootdn value={request-param:name}/ and the value entered (for name is CORPROOT\TFRGHM00) but that don't : map:parameter name=rootdn value=CORPROOT\{request-param:name}/ and the value entered (for name is TFRGHM00) Why? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: combine values and variables for parameters in the sitemap
Ok, I see what you mean. But in the following case I can get the two parameters sitemap map:transform src=styles/sunrise-user.xsl map:parameter name=use-request-parameters value=true/ /map:transform xsl = xsl:param name=password/ xsl:param name=username/ ... xsl:if test=normalize-space(username) = $username and normalize-space(password) = $password But here I can't : sitemap map:transform type=ldap map:parameter name=rootdn value=corproot\{request-param:username}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:username}))/ /map:transform -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 5:20 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap On 11.Jun.2003 -- 03:36 PM, [EMAIL PROTECTED] wrote: I made a mistake, now I'm working with cocoon-2.1-dev 06.05.2003 If you build from sources, then start cocoon in jetty by running the command cocoon servlet and point your browser to http://localhost:/samples/xsp/java/simple for example, you see that map:parameter name=file value=xsp/{1}.xsp/ works (generates the link for Source at top right), Change it in build/webapp/samples/xsp/sitemap.xmap e.g. to the following: map:parameter name=file value=xsp/{request:scheme}.xsp/ and notice that the filename turns into http.xsp. So, your problem lies somewhere else like wrong parameter names. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: combine values and variables for parameters in the sitemap
I think the problem isn't from {request-param:username} , but from the parameter itself! Because in my log I get errors that the username is not entered and that the filter is empty. Even if I hardcode the username and filter. Is there anywhere some precise documentation about the ldap transformer, about the possibilities of multiple map:parameter? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] Sent: Thursday, June 12, 2003 9:01 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: combine values and variables for parameters in the sitemap Ok, I see what you mean. But in the following case I can get the two parameters sitemap map:transform src=styles/sunrise-user.xsl map:parameter name=use-request-parameters value=true/ /map:transform xsl = xsl:param name=password/ xsl:param name=username/ ... xsl:if test=normalize-space(username) = $username and normalize-space(password) = $password But here I can't : sitemap map:transform type=ldap map:parameter name=rootdn value=corproot\{request-param:username}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:username}))/ /map:transform -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 5:20 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap On 11.Jun.2003 -- 03:36 PM, [EMAIL PROTECTED] wrote: I made a mistake, now I'm working with cocoon-2.1-dev 06.05.2003 If you build from sources, then start cocoon in jetty by running the command cocoon servlet and point your browser to http://localhost:/samples/xsp/java/simple for example, you see that map:parameter name=file value=xsp/{1}.xsp/ works (generates the link for Source at top right), Change it in build/webapp/samples/xsp/sitemap.xmap e.g. to the following: map:parameter name=file value=xsp/{request:scheme}.xsp/ and notice that the filename turns into http.xsp. So, your problem lies somewhere else like wrong parameter names. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SUMMARY] RE: combine values and variables for parameters in the sitemap
I have found the problem. The ldap:authentification tag is obligatory in case of setting both rootdn password as parameter in the sitemap. If rootdn is in the ldap.xml ldap:authentification is not needed (in my case it was missing, so the ldap query didn't use the rootdn passwd parameters and returned an authentification error) -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 5:20 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap On 11.Jun.2003 -- 03:36 PM, [EMAIL PROTECTED] wrote: I made a mistake, now I'm working with cocoon-2.1-dev 06.05.2003 If you build from sources, then start cocoon in jetty by running the command cocoon servlet and point your browser to http://localhost:/samples/xsp/java/simple for example, you see that map:parameter name=file value=xsp/{1}.xsp/ works (generates the link for Source at top right), Change it in build/webapp/samples/xsp/sitemap.xmap e.g. to the following: map:parameter name=file value=xsp/{request:scheme}.xsp/ and notice that the filename turns into http.xsp. So, your problem lies somewhere else like wrong parameter names. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
get parameters into Sitemap
How is it possible to get parameters into the sitemap? I tried : map:parameter name=abc value={request-param:links}/ but it doesn't work this way! And the second thing is how to set parameters to a transformer? I tried : map:transform type=ldap map:parameter name=ldap:password value={request-param:passwd}/ /map:transform but it doesn't work... thanks for your help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get parameters into Sitemap
1/ to send request parameter to a transformer : for example : map:transform type=xslt src=xsl/modify_status.xsl map:parameter name=use-request-parameters value=true / -- This line is mandatory for the xslt transformer map:parameter name=status value={request-param:status} / /map:transform And the second thing is how to set parameters to a transformer? I tried : map:transform type=ldap map:parameter name=ldap:password value={request-param:passwd}/ /map:transform 2/ ldap:password should be the name you called in the transformer. like this (in the setup method): try { this.password = parameters.getParameter(ldap:password); } ... Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I send sitemap param from my wizard action?
I don't understand quite well your question. but if you want your sitemap parameter you should get them from the act method and then pass them to your perform method. Lionel At 10:36 10/06/2003 -0700, you wrote: Hi all, How I see AbstractXMLFormAction.page(..), objectMap is creating new: protected Map page(String pageName) { Map objectModel = new HashMap(); objectModel.put(OBJECT_MAP_NEXT_PAGE, pageName); return objectModel; } What if I want send some sitemap param from my wizard action ( from perform() )? public Map perform () { ... if ( formView.equals ( VIEW_REGISTRATION ) ) { if ( command.equals( CMD_NEXT ) ) { -- here I want put my sitemap param return page( VIEW_INTEREST ); } } ... Thanks, Hill cocoon 2.1m3-dev, tomcat 4, java 1.4 __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
combine values and variables for parameters in the sitemap
is it possible to combine values and variables for parameters in the sitemap like : map:parameter name=UserName value=corproot\{request-param:name}/ for eg - output : corproot\maxime - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: combine values and variables for parameters in the sitemap
On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote: is it possible to combine values and variables for parameters in the sitemap like : map:parameter name=UserName value=corproot\{request-param:name}/ for eg - output : corproot\maxime Yes. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: combine values and variables for parameters in the sitemap
I don't know why, but it doesn't work with all tags, I have these three parameters: map:parameter name=rootdn value=corproot\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:name}))/ But only the password works, rootdn and filter doesn't work... I checked the form, and the parameter use to be the same!: tr tdUser:/td tdinput name=name type=text size=15/td /tr tr tdPassword:/td tdinput name=password type=password size=15/td /tr -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:57 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote: is it possible to combine values and variables for parameters in the sitemap like : map:parameter name=UserName value=corproot\{request-param:name}/ for eg - output : corproot\maxime Yes. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: combine values and variables for parameters in the sitemap
Doy ou have declared 3 top level xsl:param in your stylesheet? xsl:param name=rootdn select=''/ xsl:param name=password select=''/ xsl:param name=filter select=''/ Joerg [EMAIL PROTECTED] wrote: I don't know why, but it doesn't work with all tags, I have these three parameters: map:parameter name=rootdn value=corproot\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:name}))/ But only the password works, rootdn and filter doesn't work... I checked the form, and the parameter use to be the same!: tr tdUser:/td tdinput name=name type=text size=15/td /tr tr tdPassword:/td tdinput name=password type=password size=15/td /tr -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:57 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote: is it possible to combine values and variables for parameters in the sitemap like : map:parameter name=UserName value=corproot\{request-param:name}/ for eg - output : corproot\maxime Yes. Chris. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: combine values and variables for parameters in the sitemap
but they are not xsl parameter, sorry if I wasn't precise enough : map:transform type=ldap map:parameter name=rootdn value=corproot\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter /map:transform -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 2:52 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap Doy ou have declared 3 top level xsl:param in your stylesheet? xsl:param name=rootdn select=''/ xsl:param name=password select=''/ xsl:param name=filter select=''/ Joerg [EMAIL PROTECTED] wrote: I don't know why, but it doesn't work with all tags, I have these three parameters: map:parameter name=rootdn value=corproot\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:name}))/ But only the password works, rootdn and filter doesn't work... I checked the form, and the parameter use to be the same!: tr tdUser:/td tdinput name=name type=text size=15/td /tr tr tdPassword:/td tdinput name=password type=password size=15/td /tr -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 1:57 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap On 11.Jun.2003 -- 01:52 PM, [EMAIL PROTECTED] wrote: is it possible to combine values and variables for parameters in the sitemap like : map:parameter name=UserName value=corproot\{request-param:name}/ for eg - output : corproot\maxime Yes. Chris. -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: combine values and variables for parameters in the sitemap
On 11.Jun.2003 -- 02:40 PM, [EMAIL PROTECTED] wrote: I don't know why, but it doesn't work with all tags, I have these three parameters: map:parameter name=rootdn value=corproot\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:name}))/ But only the password works, rootdn and filter doesn't work... I checked the form, and the parameter use to be the same!: Could you check with something else than the ldap transformer? E.g. a XSP or XSLT transform? This is with version 2.0.4? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: combine values and variables for parameters in the sitemap
No, I'm still with version 2.0 With the xsl transformer I can get parameter name password. -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 3:25 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap On 11.Jun.2003 -- 02:40 PM, [EMAIL PROTECTED] wrote: I don't know why, but it doesn't work with all tags, I have these three parameters: map:parameter name=rootdn value=corproot\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:name}))/ But only the password works, rootdn and filter doesn't work... I checked the form, and the parameter use to be the same!: Could you check with something else than the ldap transformer? E.g. a XSP or XSLT transform? This is with version 2.0.4? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: combine values and variables for parameters in the sitemap
I made a mistake, now I'm working with cocoon-2.1-dev 06.05.2003 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] .org] Sent: Wednesday, June 11, 2003 3:35 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: combine values and variables for parameters in the sitemap No, I'm still with version 2.0 With the xsl transformer I can get parameter name password. -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 3:25 PM To: [EMAIL PROTECTED] Subject: Re: combine values and variables for parameters in the sitemap On 11.Jun.2003 -- 02:40 PM, [EMAIL PROTECTED] wrote: I don't know why, but it doesn't work with all tags, I have these three parameters: map:parameter name=rootdn value=corproot\{request-param:name}/ map:parameter name=password value={request-param:password}/ map:parameter name=filter value=(amp;(objectclass=User)(cn={request-param:name}))/ But only the password works, rootdn and filter doesn't work... I checked the form, and the parameter use to be the same!: Could you check with something else than the ldap transformer? E.g. a XSP or XSLT transform? This is with version 2.0.4? Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: combine values and variables for parameters in the sitemap
On 11.Jun.2003 -- 03:36 PM, [EMAIL PROTECTED] wrote: I made a mistake, now I'm working with cocoon-2.1-dev 06.05.2003 If you build from sources, then start cocoon in jetty by running the command cocoon servlet and point your browser to http://localhost:/samples/xsp/java/simple for example, you see that map:parameter name=file value=xsp/{1}.xsp/ works (generates the link for Source at top right), Change it in build/webapp/samples/xsp/sitemap.xmap e.g. to the following: map:parameter name=file value=xsp/{request:scheme}.xsp/ and notice that the filename turns into http.xsp. So, your problem lies somewhere else like wrong parameter names. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sitemap : use and get parameters
1. How is it possible to use parameters like : map:transform type=ldap map:parameter name=ldap:rootdn value=guest/ map:parameter name=ldap:password value=secret/ /map:transform and 2. How is it possible to get parameters from a previous file (in our case from the login form): map:generate src=ldap.xml/ map:transform type=ldap map:parameter name=ldap:rootdn value=user/ map:parameter name=ldap:password value=passwd/ !-- user passwd from login form -- /map:transform The purpose of this is : Use the username password from the login form to connect to the LDAP server (ldap:rootdn and ldap:password). if the connection succeed get the user information. else authentification fails - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I send sitemap param from my wizard action?
Hi all, How I see AbstractXMLFormAction.page(..), objectMap is creating new: protected Map page(String pageName) { Map objectModel = new HashMap(); objectModel.put(OBJECT_MAP_NEXT_PAGE, pageName); return objectModel; } What if I want send some sitemap param from my wizard action ( from perform() )? public Map perform () { ... if ( formView.equals ( VIEW_REGISTRATION ) ) { if ( command.equals( CMD_NEXT ) ) { -- here I want put my sitemap param return page( VIEW_INTEREST ); } } ... Thanks, Hill cocoon 2.1m3-dev, tomcat 4, java 1.4 __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sitemap parsing error?
Title: RE: Sitemap parsing error? Hi Geoff, The encoding stated at the top of the XML file is UTF-8 For some reason the WAR extraction process didn't quite extract the full sitemap file (could have been corrupted.) I manually ftp the file across from a windows box and dos2unixed it... What's a possible fix? It appears all the text is in straight ascii... Cheers, Jason -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 05, 2003 10:09 PM To: [EMAIL PROTECTED] Subject: Re: Sitemap parsing error? And your sure you haven't typed any stray upsilon characters? ;) upsilon; = #965; = #x75; Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: Howdy Guys I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7. I've installed the WAR file and it runs fine... my final problem appears to be a cocoon problem. I am able to start up the application server fine... and no errors are logged. However, when i invoke the servlet... i get the following problems: Cocoon 2 - Internal server error type fatal message Illegal character at end of document, u. description org.xml.sax.SAXParseException: Illegal character at end of document, u. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoon/ path-info --- Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log: ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl et: Problem with Cocoon servlet org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) In the sitemap.log i get: ERROR (2003-06-05) 17:06.07:591 [sitemap] (/cocoon/) service-j2ee/Handler: E rror compiling sitemap org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371
RE: Sitemap parsing error?
Title: RE: Sitemap parsing error? Geoff, I've also noticed the following statement in access.log upon startup... Using configuration file: /WEB-INF/cocoon.xconf parent-component-manager not set - defaulting to null. container-encoding was not set - defaulting to ISO-8859-1 form-encoding was not set - defaulting to null. Cheers, Jason -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 05, 2003 10:09 PM To: [EMAIL PROTECTED] Subject: Re: Sitemap parsing error? And your sure you haven't typed any stray upsilon characters? ;) upsilon; = #965; = #x75; Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: Howdy Guys I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7. I've installed the WAR file and it runs fine... my final problem appears to be a cocoon problem. I am able to start up the application server fine... and no errors are logged. However, when i invoke the servlet... i get the following problems: Cocoon 2 - Internal server error type fatal message Illegal character at end of document, u. description org.xml.sax.SAXParseException: Illegal character at end of document, u. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoon/ path-info --- Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log: ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl et: Problem with Cocoon servlet org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) In the sitemap.log i get: ERROR (2003-06-05) 17:06.07:591 [sitemap] (/cocoon/) service-j2ee/Handler: E rror compiling sitemap org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371
RE: Sitemap parsing error?
You're probably going to need someone who is better with encoding subtleties than myself. But one thing you need to pay attention to is that what the file declares for itself (UTF-8) is compatible with the encoding of the file itself as actually performed by your editor. The fact that you've run dos2unix on it is very interesting in this regard - who knows what encoding that uses. Also, if the WAR extraction didn't extract the full sitemap that's another possible clue. It may have thought it reached an end of file - possibly because of a single/double byte issue. If no one picks up on this thread who knows more, I'd recommend renaming it to reflect that you think you have an encoding mismatch and someone who is solid in that area may take notice. HTH, Geoff -Original Message- From: Jason Nah [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 8:09 PM To: '[EMAIL PROTECTED]' Subject: RE: Sitemap parsing error? Hi Geoff, The encoding stated at the top of the XML file is UTF-8 For some reason the WAR extraction process didn't quite extract the full sitemap file (could have been corrupted.) I manually ftp the file across from a windows box and dos2unixed it... What's a possible fix? It appears all the text is in straight ascii... Cheers, Jason -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 10:09 PM To: [EMAIL PROTECTED] Subject: Re: Sitemap parsing error? And your sure you haven't typed any stray upsilon characters? ;) upsilon; = #965; = #x75; Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: Howdy Guys I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7. I've installed the WAR file and it runs fine... my final problem appears to be a cocoon problem. I am able to start up the application server fine... and no errors are logged. However, when i invoke the servlet... i get the following problems: Cocoon 2 - Internal server error type fatal message Illegal character at end of document, u. description org.xml.sax.SAXParseException: Illegal character at end of document, u. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generat eCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generate Code(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR esource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoon/ path-info --- Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log: ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl et: Problem with Cocoon servlet org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390
Sitemap parsing error?
Title: Sitemap parsing error? Howdy Guys I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7. I've installed the WAR file and it runs fine... my final problem appears to be a cocoon problem. I am able to start up the application server fine... and no errors are logged. However, when i invoke the servlet... i get the following problems: Cocoon 2 - Internal server error type fatal message Illegal character at end of document, u. description org.xml.sax.SAXParseException: Illegal character at end of document, u. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoon/ path-info --- Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log: ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl et: Problem with Cocoon servlet org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) In the sitemap.log i get: ERROR (2003-06-05) 17:06.07:591 [sitemap] (/cocoon/) service-j2ee/Handler: E rror compiling sitemap org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) The end of the sitemap is this: map:handle-errors map:transform src=""> map:serialize status-code=500/ /map:handle-errors /map:pipeline /map:pipelines /map:si
Re: Sitemap parsing error?
And your sure you haven't typed any stray upsilon characters? ;) upsilon; = #965; = #x75; Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: Howdy Guys I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7. I've installed the WAR file and it runs fine... my final problem appears to be a cocoon problem. I am able to start up the application server fine... and no errors are logged. However, when i invoke the servlet... i get the following problems: Cocoon 2 - Internal server error type fatal message Illegal character at end of document, u. description org.xml.sax.SAXParseException: Illegal character at end of document, u. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoon/ path-info --- Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log: ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl et: Problem with Cocoon servlet org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) In the sitemap.log i get: ERROR (2003-06-05) 17:06.07:591 [sitemap] (/cocoon/) service-j2ee/Handler: E rror compiling sitemap org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390
Re: Input modules parameters in sitemap. Is it possible?
On Tue, 3 Jun 2003, Christian Haul wrote: On 03.Jun.2003 -- 10:02 AM, Dmitry Lisenko wrote: On Tue, 3 Jun 2003, Dmitry Lisenko wrote: Hello, Cocooners Q: Can I set parameters of input modules in sitemap instead of cocoon.xconf ? WBR, Dmitry. BTW, cocoon v2.1 cvs 05/17/2003 under Jetty. Currently, it is not supported to configure new modules in a sitemap. However, most if not all accept a new configuration passed to them at invocation time. But this depends on the component that uses the module how you actually do this. If you want to use them for substitutions in your sitemap like {request:serverName} I'm afraid you will have to modify cocoon.xconf Chris. Thanks. I'm try to use XMLFile input module as substitution in sitemap for evaluating number of results in xmldb:xindice// query. And for now I have a problem with cocoon: pseudo-protocol caching with noncaching pipeline. WBR, Dmitry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Input modules parameters in sitemap. Is it possible?
Hello, Cocooners Q: Can I set parameters of input modules in sitemap instead of cocoon.xconf ? WBR, Dmitry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Input modules parameters in sitemap. Is it possible?
On Tue, 3 Jun 2003, Dmitry Lisenko wrote: Hello, Cocooners Q: Can I set parameters of input modules in sitemap instead of cocoon.xconf ? WBR, Dmitry. BTW, cocoon v2.1 cvs 05/17/2003 under Jetty. WBR, Dmitry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Input modules parameters in sitemap. Is it possible?
On 03.Jun.2003 -- 10:02 AM, Dmitry Lisenko wrote: On Tue, 3 Jun 2003, Dmitry Lisenko wrote: Hello, Cocooners Q: Can I set parameters of input modules in sitemap instead of cocoon.xconf ? WBR, Dmitry. BTW, cocoon v2.1 cvs 05/17/2003 under Jetty. Currently, it is not supported to configure new modules in a sitemap. However, most if not all accept a new configuration passed to them at invocation time. But this depends on the component that uses the module how you actually do this. If you want to use them for substitutions in your sitemap like {request:serverName} I'm afraid you will have to modify cocoon.xconf Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session attributes in sitemap
From: Yury Mikhienko [mailto:[EMAIL PROTECTED] On Wed, 28 May 2003 11:56:55 +0200 Mato Mira, Fernando [EMAIL PROTECTED] wrote: Is there a way to set a session attribute in the sitemap? Try use SessionValidatorAction I don't think this can be used to set it to the value of a match variable like {1}. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session attributes in sitemap
On Wed, 28 May 2003 15:08:36 +0200 Mato Mira, Fernando [EMAIL PROTECTED] wrote: From: Yury Mikhienko [mailto:[EMAIL PROTECTED] On Wed, 28 May 2003 11:56:55 +0200 Mato Mira, Fernando [EMAIL PROTECTED] wrote: Is there a way to set a session attribute in the sitemap? Try use SessionValidatorAction I don't think this can be used to set it to the value of a match variable like {1}. I don't understand what you want -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session attributes in sitemap
Look at the Sunshine component: http://www.plenix.org/dbprism/doc/xdocs/developing/sunshine-contexts.html or create a simple action to do that. David -Mensaje original- De: Mato Mira, Fernando [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 28 de mayo de 2003 15:09 Para: '[EMAIL PROTECTED]' Asunto: RE: session attributes in sitemap From: Yury Mikhienko [mailto:[EMAIL PROTECTED] On Wed, 28 May 2003 11:56:55 +0200 Mato Mira, Fernando [EMAIL PROTECTED] wrote: Is there a way to set a session attribute in the sitemap? Try use SessionValidatorAction I don't think this can be used to set it to the value of a match variable like {1}. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie Question: Where do I add actions to sitemap?
Cocooners, I have created an action, but I need to modify my sitemap.xmap like so: map:actions map:action name=myName src=com.mycompany.myclass / /map:actions Where do I put this? I've tried putting it before the components, after the components, etc. I've looked at a bunch of examples, but they don't show the entire file (only snippets). Thanks, Ross - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Question: Where do I add actions to sitemap?
Actions go *inside* components (actions are a type of component, like generator, serializer, transformer, etc.): map:sitemap ... map:components map:actions.../map:actions map:generators/map:transformers/ etc. etc. HTH /S Ross Bleakney [EMAIL PROTECTED] wrote: Cocooners, I have created an action, but I need to modify my sitemap.xmap like so: map:actions map:action name=myName src=com.mycompany.myclass / /map:actions Where do I put this? I've tried putting it before the components, after the components, etc. I've looked at a bunch of examples, but they don't show the entire file (only snippets). Thanks, Ross - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 MSN: [EMAIL PROTECTED] __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: Where do I add actions to sitemap?
Nevermind, I found the answer: put the actions element inside components/components Thanks, Ross On Wed, 2003-05-28 at 17:35, Ross Bleakney wrote: Cocooners, I have created an action, but I need to modify my sitemap.xmap like so: map:actions map:action name=myName src=com.mycompany.myclass / /map:actions Where do I put this? I've tried putting it before the components, after the components, etc. I've looked at a bunch of examples, but they don't show the entire file (only snippets). Thanks, Ross - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session attributes in sitemap
Hello, Is there a way to set a session attribute in the sitemap? Thanks -- Fernando D. Mato Mira [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session attributes in sitemap
On 28.May.2003 -- 11:56 AM, Mato Mira, Fernando wrote: Hello, Is there a way to set a session attribute in the sitemap? Only by using an action. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session attributes in sitemap
On Wed, 28 May 2003 11:56:55 +0200 Mato Mira, Fernando [EMAIL PROTECTED] wrote: Hello, Is there a way to set a session attribute in the sitemap? Thanks Try use SessionValidatorAction -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dynamic sitemap
This might be a far leap from the original request, but does anybody know if it is possible in the future that we might get map:if and map:choose now that 2.1-dev has simplified input modules? I know map:select already does basically what map:choose would do (assuming similarity to the same xsl constructs), but with select's, the variable you're switching on is hard-wired into the selector type. With input modules and something like map:choose, some of the hard-coded selectors could become obsolete. /S Reinhard Pötz [EMAIL PROTECTED] wrote: No because this would lead to a real mess in sitemaps and therefore to committers are against dynamic sitemaps (and IMHO they are right ...). and maybe the more important reason is that nobody has ever presented a usecase that makes dynamic sitemaps necessary. By the way, what's your usecase? Regards, Reinhard -Original Message- From: Ali Mesbah [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:10 AM To: [EMAIL PROTECTED] Subject: Dynamic sitemap Hallo, I need to add new pipelines to the sitemap dynamically. Is there any way of doing this?? Thanks, -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 MSN: [EMAIL PROTECTED] __ Try AOL and get 1045 hours FREE for 45 days! http://free.aol.com/tryaolfree/index.adp?375380 Get AOL Instant Messenger 5.1 for FREE! Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamic sitemap
Hallo, I need to add new pipelines to the sitemap dynamically. Is there any way of doing this?? Thanks, -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using system properties in sitemap
Hi, is it possible to use system properties (or other properties, environment vars) directly in the sitemap? I want to put a line like map:generate src=http://{server}/blaa.xml; / in the sitemap and I want to be able to keep the servername configurable. What I could do is use an action that puts a system property in a sitemap variable, but that means that this action has to be called for every request. Has someone found a simpler way to do this? regards, Alexander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sitemap authentication - mySQL
hi i try to make from scratch an example of sitemap authentication but i dont know where is the database the [protected] example use is there any interface (command line maybe) to this database? how can i make this example use a table in a mySQL database running in the same machine ? stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Managing users' permissions through the sitemap
Hi everybody, I have a problem, maybe simple, but I don't know how to deal with. I'm sure some of you have enough skills an experience to help me :) In my database, I've got a table managing the users' permissions. There's a global menu (for all the users). To know if an user is allowed to open a link from this menu, I need the user identifier (given by a session attribute) and an other identifier (like a request parameter which comes along with the link for example) Then, I want to check in my DB and : - if it's ok, open the link - if not, diplay an error message I guess I need to manage this on the sitemap level but I don't know what to use. Currently, I'm using an Authentication action which allows an logged user to access to the whole site but, as you can see, I want to be more restrictive for some sections of the site. Any idea would be welcome, thx in advance ! Amelie
Re: Managing users' permissions through the sitemap
Hi Amelie, I do a similar thing, and I use an XSP with some scripting in it. Here's the XSP It's not through the sitemap, but maybe this helps you. Yves ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-session=http://apache.org/xsp/session/2.0; create-session=true html esql:connection esql:poolpierrefabre/esql:pool esql:execute-query esql:query select * from tblLogin where name = 'xsp-request:get-parameter name=username/' and password = 'xsp-request:get-parameter name=password/' ; /esql:query esql:results xsp-session:set-attribute name=useradmin/xsp-session:set-attribute body onload=window.location = './../frames.html'/body /esql:results esql:no-results head link rel=stylesheet type=text/css href=./../css/pierrefabre.css/ titlePierre Fabre Médicament/title meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ meta http-equiv=pragma content=no-cache/ /head body class=homepage onload=window.alert ('Username or password not correct') ; window.location = './../admin/password.html' /body /esql:no-results /esql:execute-query /esql:connection /html /xsp:page Hi everybody, I have a problem, maybe simple, but I don't know how to deal with. I'm sure some of you have enough skills an experience to help me :) In my database, I've got a table managing the users' permissions. There's a global menu (for all the users). To know if an user is allowed to open a link from this menu, I need the user identifier (given by a session attribute) and an other identifier (like a request parameter which comes along with the link for example) Then, I want to check in my DB and : - if it's ok, open the link - if not, diplay an error message I guess I need to manage this on the sitemap level but I don't know what to use. Currently, I'm using an Authentication action which allows an logged user to access to the whole site but, as you can see, I want to be more restrictive for some sections of the site. Any idea would be welcome, thx in advance ! Amelie -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Managing users' permissions through the sitemap
hi amelie (always reminds me of that wonderful movie ;-), since I've not yet looked into/used the authentication framework, my first thought would be another authorization action. you supply the action with the respective parameters or let the action grab it from the session, etc. from within your action you check if the user is authorized. in case of non authorized access you return null, otherwise you return a map (empty or containing some sitemap parameters you want to set). then within the pipeline the delivery of the protected content goes into the action block (since what's here only gets executed if the action returned something not null). the pipeline steps for unauthorized access would follow the action block. example: ... map:match pattern=protected/**.xml map:act type=my-custom-auth-action map:parameter name=resource value={0}/!-- {0} - e.g. protected/foo.xml -- !-- execute following if action succeeded (returned non-null) -- map:generate src=protected-stuff/{../1}.xml/ ... map:serialize type=html/ /map:act !-- execute following if action didn't succeed (returned null) -- map:read mime-type=text/html src=unauthorized.html/ /map:match ... just an example off of the top of my head. regarding the term 'open the link'. just to prevent a misunderstanding; when the user clicks a link, this triggers a request which is to be handled (in this case by the sitemap). thus, you handle the request, but maybe differently depending on context (authorization in this case). so you either deliver a respective response to the request (as in the example above; authorized - deliver protected content, unauthorized - deliver error page), or you prevent the user from being able to click the link in the first place. for this you'd have to do the authorization earlier and adapt the response correspondingly. HTH -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Amelie Cordier Gesendet: Montag, 31. Marz 2003 22:36 An: [EMAIL PROTECTED] Betreff: Managing users' permissions through the sitemap Hi everybody, I have a problem, maybe simple, but I don't know how to deal with. I'm sure some of you have enough skills an experience to help me :) In my database, I've got a table managing the users' permissions. There's a global menu (for all the users). To know if an user is allowed to open a link from this menu, I need the user identifier (given by a session attribute) and an other identifier (like a request parameter which comes along with the link for example) Then, I want to check in my DB and : - if it's ok, open the link - if not, diplay an error message I guess I need to manage this on the sitemap level but I don't know what to use. Currently, I'm using an Authentication action which allows an logged user to access to the whole site but, as you can see, I want to be more restrictive for some sections of the site. Any idea would be welcome, thx in advance ! Amelie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Get a sitemap parameter for an xsl page
Is it possible to get a sitemap parameter and using it into an xsl page. Here is my pipeline: map:match pattern=search map:generate type=Request/ map:transform type=Query map:parameter name=interval value=50/ /map:transform map:transform type=xslt src=proto/xsl/documents.xsl/ map:serialize/ /map:match I want to use the parameter interval in the xslt transformation. But I don't want to declare it again into the xslt transformer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get a sitemap parameter for an xsl page
You don't have to declare it again. This is an extract of my sitemap. Notice the parameter relpath. map:match pattern=xsp/*/*.html map:generate src=xsp/{1}/{2}.xsp type=xsp/ map:transform src=xsl/html.xmlpage.xsl map:parameter name=relpath value=./../../ /map:transform map:serialize/ /map:match This is the XSL (relevant part). Notice the declaration of the parameter on top, and it's use in the code. ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:param name=relpath/ xsl:template match=/xml/layout html head link type=text/css rel=stylesheet xsl:attribute name=hrefxsl:value-of select=$relpath//css/general.css/xsl:attribute /link /head body /body /html /xsl:template /xsl:stylesheet I don't do that because I want my sitemap to choose the value of the parameter. I read some messages and it seems that's it's not possible to use global parameters in the sitemap with cocoon 2.0.4. At 13:48 17/03/2003 +0100, you wrote: Why don't you want to declare it in the XSL ? Otherwise, it's very simple: xsl:param name=yourname/ and you can use it as xsl:value-of select=$yourname/ Is it possible to get a sitemap parameter and using it into an xsl page. Here is my pipeline: map:match pattern=search map:generate type=Request/ map:transform type=Query map:parameter name=interval value=50/ /map:transform map:transform type=xslt src=proto/xsl/documents.xsl/ map:serialize/ /map:match I want to use the parameter interval in the xslt transformation. But I don't want to declare it again into the xslt transformer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get a sitemap parameter for an xsl page
I think there is a confusion. I only want to use a parameter which have the same value in all the pipelines without declare it in each pipeline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Get a sitemap parameter for an xsl page
You can't do that ... (In my humble opinion) Unless ... you declare it in an XML file, and use the aggregation (or include) with that file in each pipeline. Or, you can use the document() function in XSL to read the content of that single XML file, to avoid the aggregation. I think there is a confusion. I only want to use a parameter which have the same value in all the pipelines without declare it in each pipeline. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Met vriendelijke groeten, Kind regards, Bien à vous, Yves Vindevogel Implements Kempische Steenweg 206 -- 3500 Hasselt -- Belgium Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91 Mail: [EMAIL PROTECTED] -- www.implements.be Quote: The winner never says participating is more important than winning. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sitemap parameter for esq connection-pool in xsp
Is there a xsp-tag / logicsheet to do this, as well? Just as you can do: xsp-request:get-parameter as=xml name=fruit/? Thanks in advance Stefan - Original Message - From: Andres, Judith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 14, 2003 2:59 PM Subject: AW: sitemap parameter for esq connection-pool in xsp Try: String pool = parameters.getParameter(pool, ); -Ursprüngliche Nachricht- Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 14:55 An: Cocoon-Users (E-Mail) Betreff: sitemap parameter for esq connection-pool in xsp Hello group, I try to establish a template structure for my reports. The all the same besides the pool-connection. If I use the following pipeline: map:pipeline map:match pattern=report-*.xml map:generate type=serverpages src=global/reports/xsp/verkauf1.xsp map:parameter name=pool value={1}/ /map:generate map:serialize type=xml/ /map:match /map:pipeline How can I call the value of map:parameter name=pool value={1}/ within my xsp? I tried it the following way (snippet from my.xsp) ... xsp:logic String pool =; try { pool=request.getParameter(pool); } catch( ParseException e ) { getLogger().error(XSP param POOL error: , e); } /xsp:logic ... But this way I can only get the parameter that is called like ...?pool=something. How can I use the parameter defined in the sitemap? ...and can I define the parameter like map:parameter name=pool value={1}/? King regards Thorsten Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] attachment: void.gif
Newbie Sitemap Help
Hello All, I am really new to working with Cocoon platform, and was trying to read and understand all that I could before posting for help. have been having trouble setting up a sitemap for a test application that I am currently developing. First off, I am just trying to get a working prototype. I hoping to accomplish a way for a user to request a foo.html document have the HTML Generator with a jtidy.properties file convert it to xml/xhtml and the use a xsl sheet to convert the it to wml and serailze it with wap/wml. At this point I am really stuck on why I keep getting a fatal language error. I am not sure if it is a sitemap error or something in the pipeline causing the error. I tried placing the documents into a separate folder under $COCOON_HOME/mount/foo/ I wrote a sub-sitemap in the foo directory. Each time I try requesting the foo.html I get a couple fatal language errors. I am rather lost at this point and if anybody has an idea for me to try please let me know. Any help would be most appreciated. Thanks, Andrew Smith I have included a short message error and my sub-sitemap. Message: Langeuage Exception Description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 213, column 54: '}' expected Line 63, column 11: class org.apache.cocoon.www.mount.html.sitemap_xmap should be declared abstract; it does not define method process (org.apache.cocoon.environment.Environment, org.apache.cocoon.components.pipeline.StreamPipeline, org.apache.cocoon.components.pipeline.EventPipeline) in class org.apache.cocoon.sitemap.AbstractSitemap Line 0, column 0: 2 errors Current Setup Linux Redhat 8.0 Tomcat 4.1.18/Cocoon 2.0.4 JDK 1.4.1_01 ?xml version=1.0 encoding=iso-8859-1? map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;^ map:components map:generator src=org.apache.cocoon.generation.HTMLGenerator type=html jtidy-configjtidy.properties/jtidy-config /map:generator map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer use-request-parametersfalse/use-request-parameters /map:transformer map:serializer name=wml mime-type=text/vnd.wap.wml logger=sitemap.serializer.wml src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//WAPFORUM//DTD WML 1.1//EN/doctype-public doctype-systemhttp://www.wapforum.org/DTD/wml_1.1.xml/doctype- system encodingACII/encoding omit-xml-declarationyes/omit-xml-declaration /map:serializer /map:components map:pipelines map:pipeline map:match pattern=*.html map:generate src={1}.html/ map:transform src=html2wml.xsl/ map:serialize type=wml/ /map:match !-- map:handle-errors map:serialize status-code=500/ /map:handle-errors -- /map:pipeline^M /map:pipelines^M /map:sitemap !-- End of File --^M -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sitemap parameter for esq connection-pool in xsp
Hello group, I try to establish a template structure for my reports. The all the same besides the pool-connection. If I use the following pipeline: map:pipeline map:match pattern=report-*.xml map:generate type=serverpages src=global/reports/xsp/verkauf1.xsp map:parameter name=pool value={1}/ /map:generate map:serialize type=xml/ /map:match /map:pipeline How can I call the value of map:parameter name=pool value={1}/ within my xsp? I tried it the following way (snippet from my.xsp) ... xsp:logic String pool =; try { pool=request.getParameter(pool); } catch( ParseException e ) { getLogger().error(XSP param POOL error: , e); } /xsp:logic ... But this way I can only get the parameter that is called like ...?pool=something. How can I use the parameter defined in the sitemap? ...and can I define the parameter like map:parameter name=pool value={1}/? King regards Thorsten Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: sitemap parameter for esq connection-pool in xsp
Try: String pool = parameters.getParameter(pool, ); -Ursprüngliche Nachricht- Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 14:55 An: Cocoon-Users (E-Mail) Betreff: sitemap parameter for esq connection-pool in xsp Hello group, I try to establish a template structure for my reports. The all the same besides the pool-connection. If I use the following pipeline: map:pipeline map:match pattern=report-*.xml map:generate type=serverpages src=global/reports/xsp/verkauf1.xsp map:parameter name=pool value={1}/ /map:generate map:serialize type=xml/ /map:match /map:pipeline How can I call the value of map:parameter name=pool value={1}/ within my xsp? I tried it the following way (snippet from my.xsp) ... xsp:logic String pool =; try { pool=request.getParameter(pool); } catch( ParseException e ) { getLogger().error(XSP param POOL error: , e); } /xsp:logic ... But this way I can only get the parameter that is called like ...?pool=something. How can I use the parameter defined in the sitemap? ...and can I define the parameter like map:parameter name=pool value={1}/? King regards Thorsten Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Summary] AW: sitemap parameter for esq connection-pool in xsp
Hello group, hello Judith, thank you Judith for your quick reply! I had to change the old my.xsp: xsp:logic String pool =; try { pool=request.getParameter(pool); } catch( ParseException e ) { getLogger().error(XSP param POOL error: , e); } /xsp:logic into the new my.xsp: xsp:logic String GETpool = parameters.getParameter(pool, ); /xsp:logic where I now can get the connection with: esql:poolxsp:exprGETpool/xsp:expr/esql:pool Thanks again! Stupid question (because I do not really have a clue about Java): Why can I not use a the following: String GETpool =; try { String GETpool = parameters.getParameter(pool, ); } catch( ParseException e ) { getLogger().error(XSP param POOL error: , e); } The error is than that I already have defined the variable pool. ...but that is only nice to know! King regards Thorsten -Ursprüngliche Nachricht- Von: Andres, Judith [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 14:59 An: [EMAIL PROTECTED] Betreff: AW: sitemap parameter for esq connection-pool in xsp Try: String pool = parameters.getParameter(pool, ); -Ursprüngliche Nachricht- Von: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 14. März 2003 14:55 An: Cocoon-Users (E-Mail) Betreff: sitemap parameter for esq connection-pool in xsp Hello group, I try to establish a template structure for my reports. The all the same besides the pool-connection. If I use the following pipeline: map:pipeline map:match pattern=report-*.xml map:generate type=serverpages src=global/reports/xsp/verkauf1.xsp map:parameter name=pool value={1}/ /map:generate map:serialize type=xml/ /map:match /map:pipeline How can I call the value of map:parameter name=pool value={1}/ within my xsp? I tried it the following way (snippet from my.xsp) ... xsp:logic String pool =; try { pool=request.getParameter(pool); } catch( ParseException e ) { getLogger().error(XSP param POOL error: , e); } /xsp:logic ... But this way I can only get the parameter that is called like ...?pool=something. How can I use the parameter defined in the sitemap? ...and can I define the parameter like map:parameter name=pool value={1}/? King regards Thorsten Mit freundlichem Gruss, Thorsten Scherler Marketing / Telefonmarketing Weidmüller GmbH Co. P.O. Box 2807 33058 Paderborn Tel.:+ 49 - 5252-960-350 Fax:+ 49 - 5252-960-116 eMail: [EMAIL PROTECTED] http://www.weidmueller.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging the sitemap
Hallo! Is it possible to somehow generate debugging statements for the sitemap? E.g. I am having doubts which map:when branch is used after a browser selector -- Dr. Hans M. Rupp danet Internet Solutions GmbH Waldburgstr. 17-19 70563 Stuttgart Germany Fon +49 711 133 53 50 Fax +49 711 133 53 53 -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Debugging the sitemap
Hans-Michael Rupp [EMAIL PROTECTED] writes: Is it possible to somehow generate debugging statements for the sitemap? E.g. I am having doubts which map:when branch is used after a browser selector Set category name=sitemap log-level=ERROR to DEBUG in logkit.xconf and you get more debug statements than you you can handle ;-) Look for http://wiki.cocoondev.org/Wiki.jsp?page=ConfiguringTheLogs , how to reduce the logging. -- Martin Holz [EMAIL PROTECTED] Softwareentwicklung / Vernetztes Studium - Chemie FIZ CHEMIE Berlin Franklinstrasse 11 D-10587 Berlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pipeline with Sitemap
Title: Pipeline with Sitemap hello everybody, this is my first in this ML. I have a problem with sitemap.xmap and pipeline. My problem is that i can't have more than One pipeline in my sitemap. All other pipeline are not considered. for example when my first pipeline manage *.html and my second pipeline manage *.xhtml, all html files will be correctly treat if i try to acces to xhtml file tomcat send me an error : toto.xhtml not found. My pipeline is correctly configured because if i put the *.xhtml first then all xhtml files will be correctly treated and if i try to acces html files Tomcat send me an error like toto.html not found... SO what can i do ? do i have make a mistake with the configuration file ?? Thank you
Re: Pipeline with Sitemap
[EMAIL PROTECTED] wrote: Hi, for example when my first pipeline manage *.html and my second pipeline manage *.xhtml, all html files will be correctly treat if i try to acces to xhtml file tomcat send me an error : toto.xhtml not found. My pipeline is correctly configured because if i put the *.xhtml first then all xhtml files will be correctly treated and if i try to acces html files Tomcat send me an error like toto.html not found... Nicolas, can you post your sitemap (or a snippet if it's large) ? This works fine for me (first xhtml and then html): map:match pattern=*.xhtml map:read src={1}.xhtml/ map:serialize type=xml/ /map:match map:match pattern=*.html map:read src={1}.html/ map:serialize type=html/ /map:match I guess you meant map:generate instead of map:read. Remember that map:read defines the whole pipeline and as such terminates sitemap execution. So the map:serialize/ above is totally useless, even if not harmful. Ask Carsten which AFAIU should not be far from you ;-) Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pipeline with Sitemap
yes of course i can post my sitemap : this is my sitemap.xmap, the part of pipeline is at the botom. map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:components map:generators default=file map:generator name=file src=org.apache.cocoon.generation.FileGenerator/ /map:generators map:transformers default=xslt map:transformer name=xslt src=org.apache.cocoon.transformation.TraxTransformer/ /map:transformers map:readers default=resource map:reader name=resource src=org.apache.cocoon.reading.ResourceReader/ /map:readers map:serializers default=html map:serializer mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer/ map:serializer mime-type=text/html name=html src=org.apache.cocoon.serialization.HTMLSerializer/ map:serializer mime-type=image/png name=svg2png src=org.apache.cocoon.serialization.SVGSerializer/ map:serializer mime-type=application/pdf name=fo2pdf src=org.apache.cocoon.serialization.FOPSerializer/ map:serializer logger=sitemap.serializer.xhtml mime-type=text/html name=xhtml pool-grow=2 pool-max=64 pool-min=2 src=org.apache.cocoon.serialization.XMLSerializer doctype-public-//W3C//DTD XHTML 1.0 Strict//EN/doctype-public doctype-systemhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd/docty pe-system encodingUTF-8/encoding /map:serializer /map:serializers map:matchers default=wildcard map:matcher name=wildcard src=org.apache.cocoon.matching.WildcardURIMatcher/ /map:matchers /map:components map:pipelines map:pipeline map:match pattern=*.xhtml map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=xhtml/ /map:match /map:pipeline map:pipeline map:match pattern=*.html map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=html/ /map:match /map:pipeline /map:pipelines /map:sitemap so with the configuration on the top of this sentence all xhtml documents are treated normaly and all HTML document aren't treated normaly but with this simple modification : map:pipelines map:pipeline map:match pattern=*.html map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=html/ /map:match /map:pipeline map:pipeline map:match pattern=*.xhtml map:generate src=content/{1}.xml/ map:transform src=transforms/simple-page2html.xsl/ map:serialize type=xhtml/ /map:match /map:pipeline /map:pipelines all HTML documents are treated normaly and all XHTML aren't treated... so what i have miss ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pipeline with Sitemap
zze-MORY Nicolas FTRD/DMI/REN wrote: yes of course i can post my sitemap : this is my sitemap.xmap, the part of pipeline is at the botom. Well, actually I don't see what could be wrong with this sitemap (don't have the time now to run it). But why do you need two map:pipeline ? A map:pipeline is only needed if you want a different map:handle-errors or if you want a particular section of your sitemap to be internal-only (i.e. usable only with the cocoon: protocol). So you could merge both map:pipeline : you don't need one for each map:match Hope this helps, Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Pipeline with Sitemap
you've rigth Sylvain, but even in merging the 2 pipeline it doesn't work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logic control in sitemap via parameters
Within a pipeline, I retrieve DB records using an SQL Transformer. I know the number of rows that I've retrieved using the nr-of-rows parameter. I'd like to branch to a different pipeline if the number of rows retrieved in the SQL Transform is 0. Is there a way to pass that nrofrows value from my result set in my xsl file back to the sitemap as a parameter? Or is there any other way of knowing how many rows were retrieved by the SQL Transformer in the sitemap? __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any way to mount a sitemap from a URL?
Hi, I am writing a sitemap which directs requests of a certain type to a sub-map like so: map:pipeline map:match pattern=foo/**.foo map:mount uri-prefix=foo check-reload=yes src= foo/foo.xmap/ /map:match /map:pipeline This works nice but what I really want is to mount a sitemap from something like a URL like http://localhost:8080/cocoon-dev/foo/foo.xmap. I can use that URL to get a copy of the right .xmap but when I plug that URL in to the src attribute of the mount element I get a big exception mess. Is this type of dynamic sitemap loading supported, perhaps in some other way? Thanks in advance, -cwk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error compiling sitemap
Hi, I've got a couple of sitemaps in my application, and I have just noticed something which I cannot figure out. I change the sitemap, and deploy to my app server (JBoss). When I request a resource that maps to the newly changed sitemap, Cocoon pauses (compiling) and then comes back with a compile error, which changes every time. The strange thing, is that if I wait 5-10 seconds, it works fine. It is almost as if it halfway compiles it the first time. Has anyone had problems like this? For all of my sitemaps, I have check-reload=yes reload-method=synchron Many thanks, Collin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error compiling sitemap
I figured it out... I was working on a new computer using jdk 1.4.1, and the computer did not have the udpated xalan libraries in the endorsed directory. http://xml.apache.org/security/install.html thanks, Collin - Original Message - From: Collin VanDyck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:00 AM Subject: Error compiling sitemap Hi, I've got a couple of sitemaps in my application, and I have just noticed something which I cannot figure out. I change the sitemap, and deploy to my app server (JBoss). When I request a resource that maps to the newly changed sitemap, Cocoon pauses (compiling) and then comes back with a compile error, which changes every time. The strange thing, is that if I wait 5-10 seconds, it works fine. It is almost as if it halfway compiles it the first time. Has anyone had problems like this? For all of my sitemaps, I have check-reload=yes reload-method=synchron Many thanks, Collin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]