MY mENU


Friday 30 March 2012

Writing the first JSP page

A JavaServer Page, technically speaking, is a web page which is embedded Java code. Java code is executed in the server side and merge with the static elements of the web page such as HTML tags... then returns the result which is plain old HTML code, JavaScript and CSS to the web browser.

This is the source code of our first JSP page which prints the simple famous greeting in programming world "Hello World" on the web browser.




JSP Page is composed of HTML and Java code. The Java code is embedded between thenotations <% and %> and it is called Scriptlet. Inside the scriptlet block, we call the method println of the out object to print the text "Hello World".