aspose file tools
The moose likes Servlets and the fly likes On line generation of HTML files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "On line generation of HTML files" Watch "On line generation of HTML files" New topic
Author

On line generation of HTML files

kiran nori
Greenhorn

Joined: May 28, 2001
Posts: 12
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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
kiran nori
Greenhorn

Joined: May 28, 2001
Posts: 12
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
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.
 
subject: On line generation of HTML files
 
Similar Threads
How to plan large content display?
is there any way to include or show html files inside JSF files in runtime?
URGENT - IIS/JSP security
Store jsp content in database
NetBeans and HTML