i viewed the sources that the plain html file and the servlet file generated...
they are exactly the same...yet the html file works , but the servlet file does not....what am i doing wrong?????

Code:
 <html>
 <head>
 </head>
 <body>
 <script language="JavaScript">
 TargetDate = "1/1/2009 12:00 AM"
 BackColor = "palegreen"
 ForeColor = "navy"
 CountActive = true
 CountStepper = -1
 LeadingZero = true
 DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds. for new years"
 FinishMessage = "It is finally here!"
 </script>
 <script language="JavaScript" src="countdown.js"></script>
 <p>it works!!</p>
 </body></html>
this generated by the servlet (source of: http://localhost:8080/execute/Execute - Mozilla Firefox)

and

Code:
 <html>
 <body>
 
 
 <script language="JavaScript">
 TargetDate = "1/1/2009 12:00 AM";
 BackColor = "palegreen";
 ForeColor = "navy";
 CountActive = true;
 CountStepper = -1;
 LeadingZero = true;
 DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds. for new years";
 FinishMessage = "It is finally here!";
 </script>
 <script language="JavaScript" src="countdown.js"></script>
 
 <p> it works!! </p>
 
 </body>
 
 </html>
this generated by the html page (source of: file:///usr/local/apache-tomcat-6.0.18/webapps/examples/servlets/cd.html - Mozilla Firefox)
thats because i saved the html file and another copy of the same js file at /usr/local/apache-tomcat-6.0.18/webapps/examples/servlets/