Hi,
As known, we can use <%= and %> or <% and %> to cite Java code in
JavaScript, is it able to access JavaScript data in Java code?
Thanks!
Roedy Green - 28 Oct 2005 08:40 GMT
>As known, we can use <%= and %> or <% and %> to cite Java code in
>JavaScript, is it able to access JavaScript data in Java code?
are you confusing JSP with Java?
See http://mindprod.com/jgloss/java.html
http://mindprod.com/jgloss/javascript.html
http://mindprod.com/jgloss/jsp.html
You don't embed JavaScript in Java or vice versa. You sometimes embed
JavaScript in HTML which you generate with Java or JSP.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
HalcyonWild - 31 Oct 2005 13:44 GMT
> Hi,
> As known, we can use <%= and %> or <% and %> to cite Java code in
> JavaScript, is it able to access JavaScript data in Java code?
>
> Thanks!
There is no direct way to access the JavaScript code in JSP. It is JSP
which is generating your JavaScript. At most, you can try to get around
this limitation by using hidden parameters, and refreshing the page on
onBlur. It seems like a dirty fix, since it needs a trip to the server
to populate request parameters from javascript.