how to get javascript variable in java? (like javascript parser?)
<p>like code:</p>

<pre><code>public static void main(String[] args) throws Exception {
    String content="&lt;HTML&gt;"
     +"&lt;HEAD&gt;&lt;TITLE&gt;title&lt;/TITLE&gt;&lt;/HEAD&gt;"
     +"&lt;BODY&gt;"
     +"&lt;script&gt;var jsvar=123;&lt;/script&gt;"
     +"&lt;/div&gt;"
     +"&lt;/BODY&gt;"
     +"&lt;/HTML&gt;"
    ;
}
</code></pre>

<p>in this case,how to get <code>jsvar</code> variable value?</p>

<p>thanks for help :)</p>
