Yes, Java (Java code, JavaScript, Java Servlets and Java Server Pages) makes up the majority of programming on this site I'm working on...but to clarify, I'm retrieving the image as follows:
Whenever a browser comes to any page on the site, the page checks to see if the session has expired within the page...if it has, a quick, efficient, non complex, call to a servlet goes into the database, retrieves the location of the image, and then sets it as a session attribute to be used across every page on the site.
Its really quite simple and easy to manage. It's not all that complex really.
I'm not looking to get into explaining the complexities and purpose of this site that I'm working on...however, I will say this, the images that I'm retrieving are based on a number, and a call to the database would be necessary at some point anyways.
So the idea to use <include>'s with 1
JSP page containing image locations isn't quite good enough for the task. Sooner or later, like when the session expires, that number will have to be retrieved from the db.
The call to the db to get the image and set the location as a session attribute occurs when a user comes to a page on the site (ex. from a bookmark/favorite), so that's once, and if the session expires sometime after logging in, so that's twice. Not inefficient. But thanks for the suggestion, it was a good one.
Now back to the original purpose of my thread, I don't like to veer off into another subject...and my question has yet to be answered...is it possible to use the onload event via the <div> tag, or is that solely an event handled ONLY by the <body> tag?