hi all;
i always find answers for my problems here at daniweb, but this is my first time i post a question, so have mercy on me :)
i have a jsp page and a huge scriptlet inside of it, the page adds new users to the application, so i just added a IF statement
<%
if(true)
{
System.err.println("done")
}else
{
System.err.println("not done")
}
%>
and it works just fine, but then i wanted to output a js alert so i did
<%
if(true)
{
System.err.println("done")
}else
{
System.err.println("not done")
%>
<script>
alert("error");
</script>
<%
}
%>
but the alert wont fire, and i don't even get any error as if the whole line is not there, so i thought maybe u could guide me to solve this issue.
thanks in advance