Hi ,
i am new to javascript.
i want to set the value of a
java variable using the value of a javascript variable.
For example iam writing a function like below:
function
test()
{
var test = true;
if(test== true)
{
<% System.out.println("in true");%>
}else if(test == false)
{
<% System.out.println("in false");%>
}
}
here even if the value of test is true ,the code inside the conditional block false is also executed.
i want to know whether we can set variables using conditional blocks using java script.