title: Passing Jsp variable to javascript as a function parameter
body: <p>I have the same query as.
  <a href="https://stackoverflow.com/questions/10033555/pass-a-jsp-variable-as-parameter-to-javascript-function">Pass a JSP variable as parameter to javascript function</a>
  However, If i use <code>onclick="pagetype('&lt;%=uname%&gt;');</code> i'm getting illegal start of type error. Please help to fix this.</p>
  
  <p>Yes.. &lt;%@ page contentType= "text/html" pageEncoding="UTF-8" %></p>