cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29442] New: - [PATCH] UrlEncodeModule
Date Tue, 08 Jun 2004 14:37:34 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29442>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29442

[PATCH] UrlEncodeModule

           Summary: [PATCH] UrlEncodeModule
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: ouzo@wlkp.org


As RawRequestParameterModule does not work there is no way to call remote 
services within sitemap. With RawRequestParameterModule it would look like this:

<map:generate src="http://remote/page?param={raw-request-param:param1}"/>
This does not work though and might not be fixable (due to servlet container 
specifics). That is why I implemented a very simple UrlEncodeModule you use 
like this:

<map:generate 
     src="http://remote/page?param={url-encode:{request-param:param1}}"/>

I could also provide a meta module for this so it would look like:
<map:generate 
     src="http://remote/page?param={encoded-request-param:param1}"/>

This module takes only one configuration parameter - "encoding", which is url-
encoded string encoding (defaults to utf-8)
Source follows.

Mime
View raw message