Showing posts with label basic jsp tutorial. Show all posts
Showing posts with label basic jsp tutorial. Show all posts

Thursday, August 22, 2013

Introduction to jsp:- All basic know-how of jsp

JavaServer Pages technology allows Web developers and designers to rapidly develop and easily maintain, information-rich, dynamic Web pages that leverage existing business systems. As part of the Java family, JSP technology enables rapid development of Web-based applications that are platform independent. JavaServer Pages technology separates the user interface from content generation enabling designers to change the overall page layout without altering the underlying dynamic content.(Sun)
  • Used to build dynamic web pages
  • Server side scripting language
  • Platform independent
  • Technologically more advanced than ASP
  • Text files that are a mix of HTML and Java code
  • Jsp stands for “Java server page”.
  • JSP are built by SUN Microsystem.
  • JSP enable the developers to directly insert java code into jsp file, this makes the development process very simple and its maintenance also becomes very easy.
  • JSP simply place JAVA inside the HTML pages means it’s an embedded of html tag and jsp’s own tag.
  • The extension of jsp page is ".jsp"
  • Java is known for its characteristic of "write once, run anywhere." and JSP page is a combination of java code into html file so we can say that the JSP pages are platform independent means .jsp pages can run in any platform.

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.