I have a requirement to generate HTML pages on the fly. The images and the HTML pages are stored in the database. On click of a link I need to select these details from the database and write out the HTML. I don't have a disk space where I can store the files and display the same. PLease send in a mail to my ID at kirannori@yahoo.com rgds Kiran Mohan Nori
I'm posting my reply here rather than sending e-mail that others won't see. You can simply hit a servlet that will read the HTML data out of the DB as appropriate, sets the response headers (mime type "text/html"), and emits the text to the response's output stream. hth, bear
Thanx Bear, But if I havce images in the HTML file how should I throw them ? if possible can you send in a small peice of code to do this.
Malhar Barai
Author
Ranch Hand
Joined: Aug 17, 2001
Posts: 399
posted
0
Originally posted by kiran nori: Thanx Bear,
But if I havce images in the HTML file how should I throw them ?
u can call the image through the <img src="path"> tag, after uploading the images on server instead of calling the images from database...in the database only store the path of the image files... HTH good luck malhar
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.