I am trying to call simple java script function in my struts application.

Actually in my application when i click on a link it goes to the action class ,fetch the url /cust/symbian/htdocs/diag/symbian.htm

which i append to the tomcat home and make an absolute path i.e.

C:/Program Files/jakarta-tomcat-5.0.25/webapps/V3Portal/cust_static_pages

Now i want to call a function check().

Code is written below :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<script language="JavaScript" type="text/javascript">
function check()

<body onload="check();">


This code is work when i directly click on the page or open it in IE(Internate Explorer).

But in my application i could not call javascript fuction.Howerver in jsp pages there is no problem in function calling.

This is very much irritating to me because after calling function i have to proceed.