This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm using tiles in an app and the <body> tag is in it's own jsp that includes the other tiles files to complete the layout. If I want to preload images for each jsp how can I accomplish this since the <body> tag is going to be used for every display?
Not sure what you mean by "preload images for each jsp". The JSP doesn't load images, the client browser does. If you want to help the client browser load images faster, specify the width and height of images in your markup/tags.
then in your tiles-def, you can just define puts: <put name="imageLoadScript" value="myMenuImages.js" /> <put name="imageLoadScriptProcName" value="preLoadMenuImages()" /> You don't even have to make it that complicated if you have only one script to preload your images -- just plug the names in directly into the layout. [ October 24, 2003: Message edited by: Junilu Lacar ]
Joined: Sep 12, 2003