Ken,

You need to specify your script block as containing CDATA, like so:

<script type="text/javascript"><![CDATA[
if(true && true) {
alert("!!!");
}
]]></script>

Tapestry treats templates as XML, and & is an invalid character unless
processed as cdata.

chris

Ken wrote:
> Hi,
>
> I wrote a template file like below:
>
>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> <head>
> <script type="text/javascript">
> if (true && true) {
>   alert("!!!");
> }
> </script>
> </head>
> </html>
>
>
> and prepare empty Java file.
> then I accessed to this page and got an error:
>
>
> An unexpected application exception has occurred.
>
> Failure parsing template classpath:com/example/myapp/Test.tml: The
> entity name must immediately follow the '&' in the entity reference.
>
>
> I'm using Tapestry 5.0.11.
>
> somebody help me.
> thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

-- 
http://thegodcode.net


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to