File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes An HTML page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "An HTML page " Watch "An HTML page " New topic

An HTML page

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi all,
I have an HTML/jsp page, actually a jsp page which will be populated dynamically with the values from the database.
Now this database can return 1000s of records in the real time environment.
Now the problem is a DISPLAY problem for the html.
I have an image which is set as a background for the body of this html page. It is set as this :
<body text=#000000 link=#000000 vlink=#000000 alink=#000000 background="/images/bg_main.gif" >
Now because of the huge amount of data, when all these data comes to the page, I see these pages displaying this image multiple times. ie, when the page becomes bigger after a particular length, the image is getting generated again and again.
How can I avoid this problem without using frames ?
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4351

no. if you use a single image as the background you have to know how big the page will be and make the image the same size(actually larger is better in case the visitor has a higher resolution setting). you could have the image just at the top and fade it into a solid color at the bottom(and right side too maybe). if that sounds good i have seen that done. or you can forget that image and maybe use a small image that tiles well. loading a full screen image is slow on dial-up modems as well and getting info from the database is slow also(especially in netscape i have noticed).
Dont blindly believe everything I say.

Visit my download page
I agree. Here's the link:
subject: An HTML page
It's not a secret anymore!