You are on page 1of 15

MAINTAINANCE AND DEPLOYMENT OF NTC WEBSITE

BY:

SUMIT KUMAR SINGH ID-06DDCS066

ORGANIZATION PROFILE
National Informatics Centre (NIC) of the Department of Information Technology is providing network backbone and e-Governance support to Central Government, State Governments, UT Administrations, Districts and other Government bodies.

INTRODUCTION
JSP or Java Server Pages, was developed by Sun Microsystems. JSP technology is object-oriented programming language and is based on Java language. Java Server Pages is the way to separate the look of the web page from it's content. What this separation means is that no matter what web server or platform is used to develop or run the web site - it will behave the same way - providing different users with the same quality of product.

Why Use JSP


y JSP is widely used for developing dynamic web sites. y JSP is used for creating database driven web

applications because it provides superior server side scripting support. y The Java feature of write once, run anywhere is applicable to JSP. JSP is platform independent, making it portable across any platform and therefore, mulit-platform. It is possible for the programmer to take a JSP file and move it to another platform, JSP Servlet engine or web server.

Why Use JSP(contd)


 Portability  Because of Efficiency  Reusability  Robust  Independency of Layers  Simplification of Process

Software Requirments
 Java Runtime Environment  TomCat Web Server  PostgreSql for Database  Internet Web Browser(JavaScript Enabled)  Lan Connection(Ethernet Card)

JSP Tags
There are five main tags Declaration Tag(<%! %>) This tag allows developer to declare varriables or methods.  Expression Tag(<%= %>) This tag allows the developer to embeded any Java Expression and is short for out.println().  Directive Tag(<%@directive.....%>) This tag gives special information about the page to the JSP Engine.

JSP Tags(contd.)
 Scriplet Tag(<%....%>)

Between these tags any valid Java code is called a Scriplet.  Action Tag Three main roles of action tag(i)Enables the use of server side Javabeans. (ii)Transfer control between pages. (iii)Browser independent support for applets.

Creating your First JSP


<html> <head> <title> Current Server Time </title> <br> <h2>The Current Web Server N Time are:</h2> <%=newjava.util.Date()%> </head> </html> Type the above code in a text file. Name the file helloworld.jsp. Place in the current directory on your JSP Web Server and call it via your browser.

THANKING YOU...

You might also like