ok
if this is a 'normal' html page, it is STATIC and then you can't "select when page is loading" - right ?
so you need to use a language, either client side (as javascript is) or server side (as java, coldfusion, php, cgi are) to GENERATE the html page so you can "select when page is loading" - right ?
and as the solution is different depending on which language you chose to use, i asked which language you were using to produce that page
as this post is in the javascript forum i could have supposed you were using javascript - now you say you're using jsp (that is java - java is NOT javascript and there are HUGE differences) - so please could you tell us which one you're using ?
if it is javascript i'll be glad to answer here
if it is jsp i think your question belongs to the "sun java server pages JSP" forum