cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <j...@apache.org>
Subject [jira] Zugewiesen: (COCOON-1657) VelocityGenerator: error when sending string containing ampersand
Date Thu, 10 Nov 2005 12:21:03 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1657?page=all ]

Jörg Heinicke reassigned COCOON-1657:
-------------------------------------

    Assign To: Cocoon Developers Team

> VelocityGenerator: error when sending string containing ampersand
> -----------------------------------------------------------------
>
>          Key: COCOON-1657
>          URL: http://issues.apache.org/jira/browse/COCOON-1657
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: Velocity
>     Versions: 2.1.7
>     Reporter: Andreas Deininger
>     Assignee: Cocoon Developers Team

>
> Take this flowscript:
>  function velotest() {
>     cocoon.sendPage("abstract.vm", { "test" : "vm&vm" } );
>   }
> With abstract.vm being an velocity template processed by the Velocity Generator:
> <?xml version ?>
> <data>$test</data>
> You receive the following error, due to the occurence of the
> ampersand-sign in the "vm&vm" string::
> An Error Occurred: The reference to entity "vm" must end with the ';' delimiter.
> This seems to be due to the fact that the sent value is not escaped, i.e. & remains
& and does not get converted to &amp; in the resulting XML.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message