This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 8876

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.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
subject: reading and write a HTML file