Author: cziegeler
Date: Fri Oct 15 00:44:37 2004
New Revision: 54831
Modified:
cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/transformation/IncludeTransformer.java
Log:
Make this compilable with JDK 1.3
Modified:
cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/transformation/IncludeTransformer.java
==============================================================================
---
cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/transformation/IncludeTransformer.java
(original)
+++
cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/java/org/apache/cocoon/transformation/IncludeTransformer.java
Fri Oct 15 00:44:37 2004
@@ -43,7 +43,6 @@
import java.io.IOException;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
-import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
@@ -496,8 +495,8 @@
* are passed through flawlessly.
*/
if (this.x_parameters == null) this.x_parameters = new
HashMap(5);
- this.x_parameters.put(URLEncoder.encode(this.x_parameter,
ENCODING),
- URLEncoder.encode(value, ENCODING));
+ this.x_parameters.put(NetUtils.encode(this.x_parameter,
ENCODING),
+ NetUtils.encode(value, ENCODING));
} catch (UnsupportedEncodingException e) {
throw new SAXException("Your platform does not support the
" +
ENCODING + " encoding", e);