You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrea Pierini <ml...@maticad.it> on 2003/05/08 17:58:12 UTC
URL encoding in sitemap problem
I'm trying to use the following very simple pipeline to create
thumbnails of some images:
<map:pipeline>
<map:match pattern="progetticerp/*/**.jpg">
<map:read type="imageresource" mime-type="image/jpg"
src="http://www.cerproject.it/store/progetti/dati/{2}.jpg">
<map:parameter name="width" value="{1}"/>
</map:read>
</map:match>
</map:pipeline>
Everything works fine with matching URLs containing simple ASCII chars,
but if {2} contains, for example, spaces then they are non encoded in
%20 and I receive an exception saying "HTTP Server Error 400".
How can I solve this problem?
I'm using Tomcat 4.1.24 and Cocoon 2.0.4.
Thanks in advance
_____________________________________________
Andrea Pierini
Maticad s.r.l. - www.maticad.it
E-Mail: ml_apierini@maticad.it
Work Phone: +390721639166
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org