新手问一个在JSP中使用javascript函数的问题
下面是JSP页面: 
  <%@page   contentType= "text/html;   charset=GB2312 "%>  
  <html>  
  <head>  
  <title> 注册页面 </title>  
  <script   type= "text/javascript "   language= "javascript ">  
 function   test(){ 
       alert( "done!!! "); 
 } 
  </script>  
  </head>  
  <body>  
  <form   action= "AdduserServlet "   method= "POST ">  
 年龄: <input   type= "text "   id= "age "   onchange= "test(); ">  
  </form>  
  </body>  
  </html>    
 为什么我改变text中值的时候,没有调用函数,但在我关闭窗口的时候弹出了函数?   
 我是用JBuilder2006编译的,运行时的信息里有条是: 
 2007-6-11   15:56:27   org.apache.catalina.core.StandardHost   start 
 信息:   XML   validation   disabled 
 这是什么意思呢?
------解决方案--------------------2007-6-11 15:56:27 org.apache.catalina.core.StandardHost start是说Tomcat启动了 
 下面是说XML验证不可用,没关系的。 
 我试了一下好使阿当你改变文本框的值然后光标离开的时候。