cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Carvalho <sergio.carva...@acm.org>
Subject Re: [Bug 2631][patch] New: - JspGenerator doesn't allow relative src
Date Sun, 15 Jul 2001 17:49:56 GMT

Attached is a patch that seems to solve the problem. Please check it before
commiting - its not very elegant, but does the trick. 

On 15 Jul 2001 16:15:52 -0000, bugzilla@apache.org wrote:
--
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2631
> 
> *** shadow/2631	Sun Jul 15 09:15:52 2001
> --- shadow/2631.tmp.24988	Sun Jul 15 09:15:52 2001
> ***************
> *** 0 ****
> --- 1,28 ----
> + +============================================================================+
> + | JspGenerator doesn't allow relative src                                    |
> + +----------------------------------------------------------------------------+
> + |        Bug #: 2631                        Product: Cocoon 2                |
> + |       Status: NEW                         Version: 2.0alpha CVS            |
> + |   Resolution:                            Platform: Other                   |
> + |     Severity: Normal                   OS/Version: Other                   |
> + |     Priority: Other                     Component: core                    |
> + +----------------------------------------------------------------------------+
> + |  Assigned To: cocoon-dev@xml.apache.org                                    |
> + |  Reported By: sergio.carvalho@acm.org                                      |
> + |      CC list: Cc:                                                          |
> + +----------------------------------------------------------------------------+
> + |          URL:                                                              |
> + +============================================================================+
> + |                              DESCRIPTION                                   |
> + When the JspGenerator src parameter is a path relative to the current sitemap
> + context, the generator will fail, producing a 
> +  org.apache.jasper.JasperException: Unable to compile class for JSP
> + 
> + To reproduce:
> +  * Remove the leading slash from the JSP sample pipeline src parameter. It
> + becomes:    
> +    <map:match pattern="jsp/*">
> +     <map:generate type="jsp" src="docs/samples/jsp/{1}.jsp"/>
> +     <map:transform src="stylesheets/page/simple-page2html.xsl"/>
> +     <map:serialize type="html"/>
> +    </map:match>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 



--
Sergio Carvalho
---------------
sergio.carvalho@acm.org

If at first you don't succeed, skydiving is not for you

Mime
View raw message