Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Java
1. By..,
K.Rajalakshmi , Msc-IT
Department of CS & IT
Nadar saraswathi college of arts and science,
Theni
CONCEPTS OF ADVANCED JAVA
PROGRAMMING JAVA SCRIPTS-
SERVLET-JDBC-ETB-JSP
3. INTRODUCTION
• Java is an high level programming language developed by SUN
MICROSYSTEM.
• It was originally designed for developing programs for set-top
boxes and handled devices but later became a popular choice
for creating web application.
• The java syntax is similar to C++ but is strictly an object oriented
programming language .
4. JAVA SCRIPT:
• Java script is a scripting language that enables to create
dynamically updating content, control multimedia, animate
images and pretty much everything else…
5. SERVLET:
• Servlet technology is used to create a web application
(resides at server side and generate a dynamic web
page)
• Servlet technology is robust and scalable because of
java language
6. WHAT IS SERVLET?:
• Servlet is an API that provides many interface and classes
including documentation.
• Servlet is an interface that must be implemented for creating
any servlet
• Servlet is a class that extends the capabilities of the server and
responds to the incoming request. It can respond to any
request.
• Servlet is a web component that is deployed on the server to
create a dynamic web page.
8. JDBC:
• JDBC API is a java API that can access any kind of tabular data
especially data stored in a relational database.
• JDBC works with java on a variety of platform, such as windows,
Mac OS, and the various version of UNIX.
9. PURPOSE OF LEARNING JDBC:
• JDBC stands for Java Data Base Connectivity
• Its is an database independent connectivity between the java
programming language and a wide range of database
• Some commonly associated JDBC database usages are:
10. • Making a connection to a database
• Creating SQL or MYSQL statements
• Executing SQL or MYSQL queries in the database
• Viewing & modifying the resulting records
11. APPLICATIONS OF JDBC:
• It is specification that provides a complete set of interface that
allows for portable access to an underlying database
• Java can be used to write different types of executable such as:
• Java application
• Java applet
• Java servlet
• Java server pages(JSPs)
• Enterprise JavaBeans(EJBs)
• All these are able to use a JDBC driver to access a database
and take advantage of the stored data.
12. ETB :
• ETB stands for End of Transmission Block
• A communication control character used to indicate the end of a
block of data for communication purposes
• ETB is used for blocking data where the block structure is not
necessarily related to the processing format
13. JSP :
• JSP technology is used to create web application just like
servlet technology
• It can be thought of as an extension to servlet because it
provide more functionality than servlet such as expression
language, JSTL etc.,
14. ADVANTAGE OF JSP OVER SERVLET:
• There are many advantages of JSP over the servlet they are:
• Extension to servlet
• Easy to maintain
• Fast development no need to recompile and redeploy
• Less code than servlet
15. LIFECYCLE OF A JSP PAGE:
• The JSP pages follow these phases:
• Translation of JSP page
• Compilation of JSP page
• Class loading
• Instantiation
• Request processing
• Destroy
16. CREATING SIMPLE JSP PAGE:
• To create the first page, write some HTML codes as given below
and save it by .jsp extension
• To save this file as index .jsp
• Put it in a folder and paste the folder in the web apps directory
in apache tomcat to run the jsp page
19. HOW TO RUN A SIMPLE JSP PAGE:
• Start the sever
• Put the jsp file in a folder and deploy on the server
• Visit the browser by the url
• http://localhost:portno/contextroot/jspfile
• For EG:
http://localhost:8888/myapplication/index.jsp