can anyone give a complete example of how to call a js using java file?
<p>My code is like</p>

<h3>SJCL.js</h3>

<pre><code>function encrypt(data, key){
    ......
}
</code></pre>

<h3>abcd.java</h3>

<pre><code>public String callJavascript(String data,String key)
{
    // i want to call the encrypt method here with data,key  value passing to it
}
</code></pre>

<p>any help????</p>

<p>using <strong><em>java5</em></strong> only</p>
