Hello!
I am using Spring Roo for my project. Spring Roo is using JSPX for round-tripping.
How do I embed JavaScript in JSPX page, so it stays parsable?
Hello!
I am using Spring Roo for my project. Spring Roo is using JSPX for round-tripping.
How do I embed JavaScript in JSPX page, so it stays parsable?
Use CDATA and javascript comment.
<script type="text/javascript">
// <![CDATA[
alert(1);
// ]]>
</script>
This will tell to XML parser that content inside <script>
tag is ok.