title: JavaScript function not working
body: <p>using string buffer in java i append javascript for example</p>
  
  <pre><code>StringBuffer sb1=new StringBuffer();
  
  sb1.append("&lt;script type=\"text/javascript\"&gt;\n function callauto(){ ");
  sb1.append(" var get_deci"+i+"=eval("+c_c+ "&amp;&amp;"+splitvalue_text[0]+"=="+d_d+"?true:false);");
  sb1.append("if(get_deci"+i+"){ alert(\"ok\");}");
  sb1.append("}&lt;/script&gt;&lt;script&gt;callauto();&lt;/script&gt;");
  </code></pre>
  
  <p>using ajax i get the stringbuffer and display the stringbuffer using servlet printwriter in browser
  but above js  function callauto not works value <code>c_c,splitvalue_text[0],d_d</code> are generated dynamically.
  if  above condition satisfies it returns  true then it shows alert. </p>