hello everyone!
i just have registered as of now... and i hope you could really help me in this one... i know you can!!
well, my problem is this:
i have made a
JSP page with a javascript in it. i would like to ask if it is possible to put a
<% %> tag inside a <script></script> tag?
actually, i have already done this one before, i put a JSP variable with a value in it lets say
<% int JSPInteger = 10; %> inside a javascript tag to transfer that value into a javascript variable.
did you get what i said
? to put into computer terms it will look like this...
<% int JSPInteger = 10; %>
<script>
var JavascriptInteger;
JavascriptInteger = <% JSPInterger %>;
</script>
my question is can JavascriptInteger get the value of JSPInteger?
when i did this, an error occured saying JavascriptInteger was null or not a object..
is there any way to transfer the values of the variables from jsp to javascript and vice versa?
please help... no one can help me in this problem...
btw, i also sori for my english grammars, im not really good in my english