I have written 2 functions that hides and shows elements based on ID's. Now I have to pull a value from a java class, check to see if it's applicable, and then call one of the two functions to determine what it shown.
The debugger shows it hitting the if condition, and then skipping over it entirely. I can see that the value is stored in the variable.
String showHideDeets = myData.showHideDeets();
if(showHideDeets){
%>
<script>
alert(showHideDeets);
showTable("schollTable");
showTable("selectionRow11");
showTable("addrow");
</script>
<%
}
else{
%>
<script>
alert(showHideDeets);
hideTable("schollTable");
hideTable("selectionRow11");
hideTable("addrow");
</script>
<%
}
%>