It's not a secret anymore!
The moose likes Servlets and the fly likes reading and write a HTML file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "reading and write a HTML file" Watch "reading and write a HTML file" New topic

reading and write a HTML file

Ikasari Widiyanto

Joined: May 31, 2004
Posts: 29

I would like to know how to create a HTML file in jsp. because I'm doing program that can create e-cards for christmas. There must be image and music in the html file. I'm not sure how to do this. Can someone help me by providing me with links or sample code would be the best. Thanks..
Ben Wood
Ranch Hand

Joined: Aug 14, 2001
Posts: 342

Are you sure you want to write a file? The idea behind JSP is that it will dynamically generate the HTML for your page and send it to the browser, the file you write is the JSP script and the way it presents the HTML then depends on the user inputs.

SCJP 1.4,
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

The J2EE tutorial is the place to start. Specifically the chapters on Java Servlets and JavaServer pages. As this has little to do with IO, I'm going to move it to the Servlets Forum.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: reading and write a HTML file
It's not a secret anymore!