No problem
I don't think it will be much use to you but here is part of my sitemap
where urlEncode is used (snippet of the component and pipeline sections of
my sitemap):





<!--SAMPLE COMPONENT -->
<map:components>

  <map:generators default="file">
   <map:generator  name="file"
src="org.apache.cocoon.generation.FileGenerator" label="content"/>
   <!-- FIXME: Change this once better view handling is implemented -->
   <map:generator  name="file-nolabel"
src="org.apache.cocoon.generation.FileGenerator"/>
  </map:generators>

  <map:transformers default="xslt">
   <map:transformer name="xslt"
src="org.apache.cocoon.transformation.TraxTransformer">
    <use-request-parameters>false</use-request-parameters>
    <use-browser-capabilities-db>false</use-browser-capabilities-db>
   </map:transformer>
       <map:transformer name="encodeURL"
      src="org.apache.cocoon.transformation.EncodeURLTransformer">
      <!-- default configuration, explicitly defined -->
      <include-name>.*/@href|.*/@action|frame/@src</include-name>
      <exclude-name>img/@src|(a/@href|iframe/@src)=.*adserver</exclude-name>
    </map:transformer>

        <map:transformer name="i18n" logger="sitemap.transformer.i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
                <catalogues default="menu">
                        <catalogue id="menu" name="menu"
location="translations"/>
                        <catalogue id="messages" name="messages"
location="translations"/>
                </catalogues>
                <!--<untranslated-text>untranslated</untranslated-text>-->
                <cache-at-startup>false</cache-at-startup>
         </map:transformer>
  </map:transformers>

    <map:actions>
      <!-- LocaleAction is used to set/get current users locale. See
Javadocs for details. -->
      <map:action name="locale" logger="sitemap.action.locale"
src="org.apache.cocoon.acting.LocaleAction">
        <!-- Creates a new session if needed. Used with 'store-in-session'
param -->
        <create-session>true</create-session>
        <!-- Stores locale information in session. A session should be
created before, 
             otherwise 'create-session' should be true.
                -->
        <store-in-session>true</store-in-session>
        <!-- Stores locale information in request attributes -->
        <store-in-request>true</store-in-request>
        <!-- Stores locale information in a client cookie -->
        <store-in-cookie>false</store-in-cookie>
        <!-- Uncomment as needed to override defaults:
             <locale-attribute>locale</locale-attribute>
             <language-attribute>language</language-attribute>
             <country-attribute>country</country-attribute>
             <variant-attribute>variant</variant-attribute>
          -->
      </map:action>
                   <map:action name="authenticator"
src="org.apache.cocoon.acting.DatabaseAuthenticatorAction"/>
    </map:actions>




  <map:readers default="resource">
   <map:reader name="resource"
src="org.apache.cocoon.reading.ResourceReader"/>
  </map:readers>

  <map:serializers default="html">
   <map:serializer name="html"   mime-type="text/html"
src="org.apache.cocoon.serialization.HTMLSerializer">
     <encoding>ISO-8859-1</encoding>
   </map:serializer>
   <map:serializer name="xml"    mime-type="text/xml"
src="org.apache.cocoon.serialization.XMLSerializer"/>
   <map:serializer name="links"
src="org.apache.cocoon.serialization.LinkSerializer"/>
  </map:serializers>

  <map:matchers default="wildcard">
   <map:matcher name="wildcard"
src="org.apache.cocoon.matching.WildcardURIMatcher"/>
  </map:matchers>

  <map:pipes default="caching">
     <map:pipe name="caching"
src="org.apache.cocoon.components.pipeline.impl.CachingProcessingPipeline"
                   logger="core.processing-pipeline" pool-max="32"
pool-min="8" pool-grow="4"/>
  </map:pipes>

 </map:components>







<!--SAMPLE PIPELINE-->
<map:pipeline>
   <map:match pattern="*.html">
    <map:aggregate element="site">
    <map:part src="cocoon:/initContexte"/>
     <map:part src="cocoon:/{../locale}/webconfig_i18n"/>
     <map:part src="cocoon:/book-{1}_{request-param:locale}.xml"/>
     <map:part src="cocoon:/body_{../locale}-{1}.xml" label="content"/>
    </map:aggregate>
    <map:transform src="stylesheets/site2xhtml.xsl">
     <map:parameter name="use-request-parameters" value="true"/>
     <map:parameter name="header" value="graphics/{1}-header.jpg"/>
     <map:parameter name="locale" value="{../locale}"/>
    </map:transform>
        <map:transform type="session" />
    <map:transform type="encodeURL"/>
    <map:serialize/>
   </map:match>

   <map:match pattern="**/*.html">
    <map:aggregate element="site">
    <map:part src="cocoon:/initContexte"/>
     <map:part src="cocoon:/{../locale}/webconfig_i18n"/>
     <map:part src="cocoon:/{1}/book-{1}/{2}_{request-param:locale}.xml"/>
     <map:part src="cocoon:/body_{../locale}-{1}/{2}.xml" label="content"/>
    </map:aggregate>
    <map:transform src="stylesheets/site2xhtml.xsl">
     <map:parameter name="use-request-parameters" value="true"/>
     <map:parameter name="header" value="graphics/{2}-header.jpg"/>
    </map:transform>
        <map:transform type="session" />
    <map:transform type="encodeURL"/>
    <map:serialize/>
   </map:match>
</map:act>
</map:pipeline>



The above pipeline was inspired from the cocoon docs sitemap. However
instead of combining 2 pipelines (book and xdocs), I'm combining a session
context, a web configuration file (controls my common look and feel), a book
pipeline (left menu) and my web main web content (xdocs).

You should read about the url encoder parameters in the component section of
the sitemap to make sure it's doing what you want.

Good luck!
Héryk




-----Message d'origine-----
De : Christoph Hermann [mailto:[EMAIL PROTECTED]
Envoyé : lundi 13 décembre 2004 09:57
À : [EMAIL PROTECTED]
Objet : Re: Basic Session and encode-url example


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Julien, Heryk schrieb:

Hello,

> I've been using urlEncode without authentication with success.
> However, I'm currently implementing authentication and I hope I won't
> be getting the bugs you are having.
> I guess someone else will be able to help you.

Could you give me some of the pages where you used encodeURL if this is 
possible?
Maybe i can try that out here and i will find what i'm doing wrong.

A+ :-)
Christoph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBva3ZH8qhdtR4sUIRAg+FAJ47W5bi4JdqzRhGVk7zTGAGW5D/VQCfc0Tr
MQ1LJnFf4+/QL0OaeGJLFpk=
=drOC
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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]

Reply via email to