I use onLoad="blah()" with tiles perfectly fine. The simplest solution in your case, would be to go to the foot of your jsp and insert
<script language="javascript"> doSomething(); </script> just before the </html> tag. Chris -----Original Message----- From: Richard Yee [mailto:[EMAIL PROTECTED] Sent: 02 March 2004 22:45 To: Struts Users Mailing List Subject: Re: BODY onLoad Workaround Alan, I don't see any problem with using the BODY onLoad event handler. I also searched on Google and found several instances where others are using it without any problems. What does your code look like? What happens when you do a view/source in the browser? Have you tried using Netscape and looking at the JavaScript console? -Richard --- Alan Weissman <[EMAIL PROTECTED]> wrote: > Hey everyone - > > > > So I have a Struts/Tiles page that I > need to have a > Javascript function called on when the page loads. > Normally this is of > course accomplished with the BODY onLoad event > however this event isn't > fired when my page loads and from doing extensive > Googling I've found > that this has something to do with the nature of > Struts/Tiles pages > (though I'm not sure what). What is the best > workaround for this? > > > > Thanks so much, > > Alan > > __________________________________ Do you Yahoo!? Yahoo! Search - Find what you're looking for faster http://search.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *********************************************** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. ************************************************ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]