You have much to learn, young padawan. Here's a good tutorial to writing simple servlets:
http://www.apl.jhu.edu/~hall/java/Se...-Servlets.html. I would suggest using Apache Tomcat as a server instead of Java Web Server, as the tutorial uses. And after you're familiar with the use of servlets, you should use JSPs rather than put HTML code into your Java classes.
Future questions on this topic should be placed in the Beginning JSP forum, or the Servlets forum.
Jon Emerson
http://www.jonemerson.net/