Originally posted by Shiva:
Hi ALL,
I am using JSDK2.1, I am trying to compile a small servlet, i get .java file as well .class file but it doesnt create a .html page , do i need to create a html page and the embed the servlet code?
Thanks very much
You generally create a servlet and then simply compile it. It never generates an HTML file. Withing this servlet you would output the HTML using System.out.println.
Of course this meant that the HTML was not particularly easy to maintain so JSPs were created. These look like normal HTML except they has JSP tags inside them. They enable you to maintain the HTML as you would a normal page. At run time when the JSP is requested for the first time, the JSP page is converted into a servlet (which contains the less manageable system.out.println commands) and then this servlet is compiled as per any other servlet.
Hope this helps.