You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Robin Green <gr...@hotmail.com> on 2000/08/08 22:28:38 UTC
[PATCH] Re: Problem in response tag library
sudhi <su...@insage.com> wrote:
>Can somebody correct this ?
> > I was trying to encode the URL using response taglib.
> > But I was not able to do it, b'cos my xsp:page wont compile.
> > This is what my xml snippet looks like.
> > ---------------------------
> > <LINK>
> > <response:encode-url url="manage.xml"/>
> > </LINK>
> > ----------------------------
> > This is what the error I get.
> > ----------------------------
> > java.lang.Exception: XSP Java Compiler: Compilation failed for
> > _index.java
> > 394: Method encodeURL(java.lang.String) not found in
> > interface javax.servlet.http.HttpServletResponse.
> > response.encodeURL(
Here are the patches for pre- Servlet 2.1 backward compatibility. Sudhi, I
am not a committer myself but I'm cc'ing you to let you know that something
is being done.
--
Robin Green
i-tao Ltd.
4 Skyline Village
Limeharbour
London E14 9TS
United Kingdom
Phone +44 20 7537 2233 Fax +44 70 8081 5118
http://www.i-tao.com
---
/dannii/home/users/greenrd/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/java/response.xsl
Wed Mar 1 16:15:00 2000
+++
/dannii/usr/local/cocoon/src/org/apache/cocoon/processor/xsp/library/java/response.xsl
Tue Aug 8 20:26:54 2000
@@ -316,7 +316,7 @@
)
</xsl:when>
<xsl:when test="$as = 'string'">
- response.encodeRedirectURL(
+ response.encodeRedirectUrl(
String.valueOf(<xsl:copy-of select="$url"/>),
)
</xsl:when>
@@ -352,7 +352,7 @@
)
</xsl:when>
<xsl:when test="$as = 'string'">
- response.encodeURL(
+ response.encodeUrl(
String.valueOf(<xsl:copy-of select="$url"/>)
)
</xsl:when>
---
/dannii/home/users/greenrd/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/XSPResponseLibrary.java
Sun Feb 13 22:12:56 2000
+++
/dannii/usr/local/cocoon/src/org/apache/cocoon/processor/xsp/library/XSPResponseLibrary.java
Tue Aug 8 20:29:18 2000
@@ -127,7 +127,7 @@
public static Element encodeURL(HttpServletResponse response, String url,
Document document) {
Element element = document.createElement("response:encode-url");
- element.appendChild(document.createTextNode(response.encodeURL(url)));
+ element.appendChild(document.createTextNode(response.encodeUrl(url)));
return element;
}
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com