Hello! Are there any (working) examples available how to use encodeURL transformer? Unfortunately I my system behaves similar like described in a previous posting.
Any comments are welcome! Best regards, Harald > > -------------------------------------------------------------------------------- > > From: rainer_burgstaller > Subject: problems with encodeURL transformer > Date: Thu, 28 Mar 2002 01:19:16 -0800 > > -------------------------------------------------------------------------------- > > Hi > > I am trying to get the encodeURL transformer working with Tomcat 4.0.1 and > JDK 1.3.1 (Cocoon 2.0.2) > > in my sitemap I have following entries > > <map:transformers> > ... > <map:transformer logger="sitemap.transformer.encodeURL" name > ="encodeURL" src="org.apache.cocoon.transformation.EncodeURLTransformer"/> > </map:transformers> > > > <map:match pattern="*.xsp"> > <map:generate type="serverpages" src="docs/{1}.xsp"/> > <map:transform type="encodeURL"/> > <map:select type="browser"> > <map:when test="opera"> > <map:transform src="stylesheets/page2wml.xsl"/> > <map:serialize type="wml"/> > </map:when> > <map:when test="wap"> > <map:transform src="stylesheets/page2wml.xsl"/> > <map:serialize type="wml"/> > </map:when> > <map:otherwise> > <map:transform src="stylesheets/page2html.xsl"/> > <map:serialize/> > </map:otherwise> > </map:select> > </map:match> > > > > as far as I understand this transformer it parses the whole xml for > attributes like href,... and replaces them with a url encoded version. > > my xml generates something like this > > <link href="somlink.xsp">link</link> > > which is then transformed by the page2html.xsl into an actual link. > However, the transformer never gets to work. > 1. it does not recognize the session when I disable cookies. > in setup: > final Request request = > ObjectModelHelper.getRequest(objectModel); > this.session = request.getSession( false ); > session is always null > > 2. if I enable cookies. then there is a session but with cookies url > encoding is not necessary :( > > > can anybody help? > > best regards > -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>