jsp:java script

Hi, i hav some java script function like this

function calImageFun()

{

window.alert("You are in callImageFun()");

<% some java code

%>

}

i call this from a JSP page CommandButton. when i click this button the funtion should be called. that is my intent.

but when i'm loading the jsp page the function called automatically with out clicking the button. and when clicking the button nothing happens.

Thanx for u'r help

[566 byte] By [AnjanReddya] at [2007-11-26 14:23:23]
# 1
delete window.alertuse alert
jgalacambraa at 2007-7-8 2:15:44 > top of Java-index,Java Essentials,New To Java...