hmm i'm not sure.
My jsp page sets up my html setup and has javascript scripts that run when the site is loaded. I don't really know if there is any other way to do that. Here's the code from my jsp page. sorry its sloppy.
thanks!
<html>
<head>
<title>...</title>
<link media="all" type="text/css" href="main.css" rel="stylesheet"></link>
<script language="javascript">
function second() {
user="Guest";
getCurrenttopic();
}
</script>
<script language="javascript">
function AddOnLoad(myfunc) {
if(window.addEventListener)
window.addEventListener('load', myfunc, false);
else if(window.attachEvent)
window.attachEvent('onload', myfunc);
}
AddOnLoad(second);
</script>
</head>
<body onload="" onunload="unloading();">
<script type="text/javascript" src="getData.js"></script>
<script type="text/javascript" src="globalvars.js"></script>
<script type="text/php" src="insert.php"></script>
<div>
<div class="mainHeader">
<tr height="150">
<td colspan="2" valign="top">
<img src= /logo.jpg />
</td>
</tr>
<div id="smallMenu">
<ul>
<li><div class="floatright">Welcome</div></li>
<li><br /></li>
<li><div id="viewprofile">View Profile</div></li>
</ul>
</div>
<br />
</div>
</div>
<div id="wrapperDiv">
<div id="topic"></div>
<div id="contents"></div>
</div>
</body>
</html>