how to pass value from javascript to java in jsp
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

how to pass value from javascript to java in jsp

From: john woo <john_woo@canada.com>
Date: Thu Jun 23 2005 - 09:17:40 CEST

Hi

in JSP, it's easy to pass value from java-variable to
javascript-variable, like

js_function(a)
{ a=<%java-class.A%>
}

I'm wondering how is the other way around? I tried

js_function(a)
{ <%java-class.A=%>a
}

but there was compiling error.

Can any one help?

--
Thanks
John 
Toronto
Received on Mon Oct 24 02:12:59 2005