tags:

views:

78

answers:

3

How can the below element be output from jspx?

**&nsp;** , output space in jspx
**if(a && a!=b)**, JavaScript file in jspx
+1  A: 

You should use "&", e.g.

"if(a && a!=b)"
Péter Török
great thanks, it works.
ricky
A: 

Try placing your javascript in:

<![CDATA[

]]>
Bozho
+1  A: 

Put JavaScript code in its own .js file and import it in the HTML using the <script> tag.

<head>
    <script type="text/javascript" src="script.js"></script>
    ...
</head>
BalusC