Showing posts with label Your first JSP hello world program. Show all posts
Showing posts with label Your first JSP hello world program. Show all posts

Thursday, August 22, 2013

Basic lesson 2:-Your first JSP hello world program

JSP simply puts Java inside HTML pages.  You can take any existing HTML page and change its extension to ".jsp" instead of ".html".  In fact, this is the perfect exercise for your first JSP.
Take the HTML file you used in the previous exercise.  Change its extension from ".html" to ".jsp".  Now load the new file, with the ".jsp" extension, in your browser.
You will see the same output, but it will take longer!  But only the first time.  If you reload it again, it will load normally.