SlideShare a Scribd company logo
INDUSTRIAL TRAINING
IN
ADVANCED JAVA
Submitted By:-
Adeeba Nadeem
1364110002
C.S-4th
year
ONLINE MUSIC
 INTRODUCTION TO
ORGANIZATION
 INTRODUCTION
• Project Description
• Project Purpose
 SOFTWARE REQUIREMENTS
 INTRODUCTION TO JAVA
 J2EE
 MVC ARCHITECTURE
 JAVA SERVER PAGES
 JAVA BEANS
Contents
Contents
 SERVLETS
 SERVLETS AND JSP
 HOW SERVLETS WORKS?
• Servlet API
• Servlet Interface
• Servlet Life Cycle
• Cookies & Session
 CREATING A SIMPLE SERVLET
 JDBC
 Conclusions
 References
IntRoDUCtIon to oRGAnIZAtIon
A subsidiary of TATA CONSULTANCY SERVICES LIMITED
(TCS Ltd), one of the world’s leading information technology
consulting, services and business process outsourcing
organizations. CMC execute large and complex turnkey projects
and have built, managed and supported our customers IT
systems across the value chain infrastructure, applications and
business processes.
PRojeCt DesCRIPtIon
The purpose of this project is to:
The E-Music World application is an Online Website for an
Organization. It is a virtual showcase for different types of
products like FILM, GHAZHAL,POP, DEVOTIONAL , and
ROCK, CLASSICAL,FOLK etc.
IntRoDUCtIon
PRojeCt PURPose
• The main aim of this project is to play Online music and very
easily with free of cost.
• The project “E-Music” after being tested and was found to
overcoming all the problems of the existing system. The
system is found to be error free and ready for implementation.
FOLLOWING ARE THE FEATURES OF
THIS PROJECT:
•Login, View all Songs Request
•Upload/delete Songs
•Login, View , play a list of Songs
•Track song request history
SOFTWARE REQUIRMENTS
• Operating System: Windows 7 or above
• Front End: HTML & JAVA SCRIPT,J2EE(JSPs, Servlets )
• Web Server: Apache Tomcat 8.0.35/Glassfish
• Back End : Oracle
• Tools Used: My eclipse/Eclipse/Net Beans
INTRODUCTION TO JAVA
• Java is a programming language initially developed by Sun
Microsystems and released as a principal component of Sun
Microsystems Java Platform. Although the language gets
much of its syntax from C and C++.
• It has a less complicated object model and lesser low-level
services. Java applications are typically compiled to byte code
(class file) that can run on any Java Virtual Machine (JVM)
regardless of computer architecture. Java is a general purpose,
object –oriented language that is specially designed to have a
few implementation dependencies as possible.
• Java is currently one of the most standard programming
languages in use, and is extensively used from application
software to web applications.
J2EE
• Short for Java 2 Platform Enterprise Edition,J2EE is a
platform independent, Java centric environment from Sun for
developing and deploying web based enterprise applications
online. The J2EE platform consist of a services, APIs, and
protocols that provide the functionality multitier, Web-based
applications
• Some of the key features and services of J2EE-
• At the client tier, J2EE supports pure HTML, as well as Java
applets or applications. It relies on Java Server Pages and
Servlet code to create HTML or other formatted data for the
client.
• Enterprise Java Beans (EJBs) provide another layer where the
platform’s logic is stored. An EJB server provides functions
such as threading, Concurrency, Security, and memory
management. These Services are transparent to the author.
MVC ARCHITECTURE
• Model-View –Controller (MVC) is an architecture tat separates the
representation of information from the user’s interface with it. The mode
consists of application data and business rules, and the controller mediates
input, converting it to commands for the model or view. A view can be
any output representation data ,such as chart or a diagram. Multiple views
of the same data are possible, such as a pie chart for management and a
tabular view for accountants .The central idea behind MVC is code
reusability and separation of concerns.
Ppt for Online music store
JAVA SERVER PAGES
• Java Server Pages(JSP) is technology that helps software
developers create dynamically generated web pages based on
HTML, XML, or other document types. Released in 1999 by
Sun Microsystems. JSP is similar to PHP, but it uses the Java
programming language.
• To deploy and run Java Server Pages, a compatible web server
with a servlet container, such as Apache Tomcat or Jetty is
required.
• Java Server pages is a technology which permits software
developers to create dynamic request like HTML, XML in
order to answer to client request in the net. The syntax in Java
Server Pages includes a supplementary XML tag which is
known as JSP actions.
JAVA BEANS
• Java Beans are reusable software components for Java that can
be manipulated visually in a builder tool. Practically ,they are
classes written in the Java Programming language conforming
to a particular convection. They are used to encapsulate many
objects into a single object (the bean) so that they can be
passed around as a single bean object instead of as multiple
individual objects. A Java Bean is a Java Object that is
serializable, has a null constructor, and allows access to
properties using getter and setter methods.
SERVLETS
• When we run small Java programs within a browser these are
referred to as Applets. . .
• so we run small Java programs within a server these are “
Servlet ”
• A servlet is a program designed to process a client request
(which requires interactivity).
– It processes arguments and formats its results as a short
lived document.
• HTML servlets are becoming a popular mechanism for
creating interactive servers.
SERVLETS AND JSP
• Java Server Pages is an extension to the servlets API.
• With conventional servlets you embed the HTML that you
need inside a Java program.
• With JSP you embed your Java program within a HTML
document (by using special tags).
• Works rather like JavaScript but the JSP script runs on the
server before the page is dispatched to the user’s browser.
HOW SERVLET WORKS?
THE JAVA SERVLET API
•The Java Servlet API is a set of Java classes which define a
standard interface between a Web client and a Web servlet.
Client requests are made to the Web server, which then invokes
the servlet to service the request through this interface.
•The API is composed of two packages:
•Java x .servlet
•Java x. Servlet .http
•The Servlet interface class is the central abstraction of the Java
Servlet API. This class defines the methods which servlets must
implement including a service() method for the handling of
requests.
SERVLET INTERFACE
• The Servlet interface class is the central abstraction of the Java
Servlet API. This class defines the methods which servlets
must implement including a service() method for the handling
of requests.
• The generic Servlet class implements this interface, and
defines a generic , protocol- independent servlet.
• To write an HTTP servlet for use on the web , we will use an
even more specialized class of GenericServlet called Http
Servlet. Http Servlet provides additional methods for the
processing of HTTP requests such as GET(do Get Method)
and POST (do post method). Although our servlets may
implement a service method, in most cases we will implement
the HTTP specific request handling methods of doGet and
doPost.
SERVLETS LIFE CYCLE
The life cycle of a servlet can be categorized into four
parts:
•Loading and Instantiation: The servlet container loads the
servlet during startup or when the first request is made. The
loading of the servlet depends on the attribute <load on startup>
of web.xml file. If the attribute <load on startup> has a positive
value then the servlet is load with loading of the container
otherwise it load when the first request comes for service. After
loading of the servlet, the container creates the instances of the
servlet.
• Initialization: After creating the instances, the servlet container
calls the init() method and passes the servlet initialization
parameters to the init() method. The Init() method is called only
once throughout the life cycle of the servlet. The servlet will be
available for service if it is loaded successfully otherwise the
servlet container unloads the servlet.
• Destroying the Servlet: If the servlet is no longer needed for
servicing any request, the servlet container calls the destroy()
method. Like the init() method this method is also called only
once throughout the life cycle of the servlet. Calling the destroy()
method indicates to the servlet container not to sent the any
request for service and the servlet releases all the resources
associated with it. Java Virtual Machine claims for the memory
associated with the resources for garbage collection.
Ppt for Online music store
COOKIES & SESSIONS
COOKIE
•A Cookie is a small piece of text stored on a user’s computer by
their browser. Common uses for cookies are authentication,
storing of site preferences, shopping cart items, and server
session identification.
•Only the cookies stored by the browser that relate to the domain
in the requested URL will be sent to the server.
•In essence , a cookie is a great way of linking one page to the
next for a user’s interaction with the web site or wenb application
SESSION
• A Session can be defined as a server-side storage of
information that is desired to persist throughout the user’s
interaction with the web site or web application.
CrEatINg a SImplE SErvlEt
• Servlets are written in a similar fashion to applets
– Write a new servlet class which extends
javax.servlet.http.HttpServlet (or just implements
javax.servlet.Servlet)
– Override certain methods to deal with requests
– Get your methods to create an HTML document to return
information to the client’s browser
– Load the servlet byte codes onto your web server (for
example apache/jserv)
JDBC
• The Java Database Connectivity (JDBC). API is the industry
standard for database –Independent connectivity between the
Java Programming language and a wide range of databases –
SQL databases and other tabular data sources, such as
spreadsheets or flat files. The JDBC API provides a call-level
API for SQL – based database access.
• JDBC technology allows you to use the programming
language to exploit” Write Once, Runs Anywhere” capabilities
for applications that require access to enterprise data. With a
JDBC technology enabled driver, you can connect all
corporate data even in a heterogeneous environment.
CONClUSIONS
• An E Music library is a project developed in Java to manage
your music store. User can login, Register and creates its own
music library, add songs, request to upload songs to
administrator. The main aim of creating this Online Music Store
System Java based web application is to provide user friendly
tool for music web sites.
rEFErENCES
• For information about HTML try http://www.w3schools.com
• You can download Sun’s servlet development kit from their
web site at the http://java.sun.com/products/servlet
• You can download apache’s Tomcat server from
http://jakarta.apache.org
• For other information about Servlet development try
http://www.servlets.com
THANK YOU

More Related Content

What's hot

Front-End Web Development
Front-End Web DevelopmentFront-End Web Development
Front-End Web Development
Yash Sati
 
Web development
Web developmentWeb development
Web development
Sunil Moolchandani
 
Introduction to Development for the Internet
Introduction to Development for the InternetIntroduction to Development for the Internet
Introduction to Development for the Internet
Mike Crabb
 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web Development
Parvez Mahbub
 
Web development
Web developmentWeb development
Web development
RaziyaChoudhary
 
Web development | Derin Dolen
Web development | Derin Dolen Web development | Derin Dolen
Web development | Derin Dolen
Derin Dolen
 
Web Development
Web DevelopmentWeb Development
Web Development
Aditya Raman
 
ppt of web development for diploma student
ppt of web development for diploma student ppt of web development for diploma student
ppt of web development for diploma student
Abhishekchauhan863165
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
BG Java EE Course
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | Introduction
JohnTaieb
 
Front end web development
Front end web developmentFront end web development
Front end web development
viveksewa
 
Training report on web developing
Training report on web developingTraining report on web developing
Training report on web developing
Jawhar Ali
 
Web Development
Web DevelopmentWeb Development
Web Development
Lena Petsenchuk
 
Web Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScriptWeb Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScript
Edureka!
 
Web development presentation
Web development presentationWeb development presentation
Web development presentation
Vaishnavi8950
 
Web Development Presentation
Web Development PresentationWeb Development Presentation
Web Development Presentation
TurnToTech
 
CSE Final Year Project Presentation on Android Application
CSE Final Year Project Presentation on Android ApplicationCSE Final Year Project Presentation on Android Application
CSE Final Year Project Presentation on Android Application
Ahammad Karim
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
Mohammed Safwat
 
Web development ppt
Web development pptWeb development ppt
Web development ppt
ParasJain222
 
Online ecommerce website srs
Online ecommerce  website srsOnline ecommerce  website srs
Online ecommerce website srs
SM Nurnobi
 

What's hot (20)

Front-End Web Development
Front-End Web DevelopmentFront-End Web Development
Front-End Web Development
 
Web development
Web developmentWeb development
Web development
 
Introduction to Development for the Internet
Introduction to Development for the InternetIntroduction to Development for the Internet
Introduction to Development for the Internet
 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web Development
 
Web development
Web developmentWeb development
Web development
 
Web development | Derin Dolen
Web development | Derin Dolen Web development | Derin Dolen
Web development | Derin Dolen
 
Web Development
Web DevelopmentWeb Development
Web Development
 
ppt of web development for diploma student
ppt of web development for diploma student ppt of web development for diploma student
ppt of web development for diploma student
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Front End Development | Introduction
Front End Development | IntroductionFront End Development | Introduction
Front End Development | Introduction
 
Front end web development
Front end web developmentFront end web development
Front end web development
 
Training report on web developing
Training report on web developingTraining report on web developing
Training report on web developing
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Web Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScriptWeb Development with HTML5, CSS3 & JavaScript
Web Development with HTML5, CSS3 & JavaScript
 
Web development presentation
Web development presentationWeb development presentation
Web development presentation
 
Web Development Presentation
Web Development PresentationWeb Development Presentation
Web Development Presentation
 
CSE Final Year Project Presentation on Android Application
CSE Final Year Project Presentation on Android ApplicationCSE Final Year Project Presentation on Android Application
CSE Final Year Project Presentation on Android Application
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
 
Web development ppt
Web development pptWeb development ppt
Web development ppt
 
Online ecommerce website srs
Online ecommerce  website srsOnline ecommerce  website srs
Online ecommerce website srs
 

Viewers also liked

Independent Research
Independent ResearchIndependent Research
Independent Research
NAVEEN KAVVADI
 
Dissertation final report
Dissertation final reportDissertation final report
Dissertation final report
Smriti Tikoo
 
Face detection presentation slide
Face detection  presentation slideFace detection  presentation slide
Face detection presentation slide
Sanjoy Dutta
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
Zara Tariq
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural network
Smriti Tikoo
 
Week6 face detection
Week6 face detectionWeek6 face detection
Week6 face detection
Haitham El-Ghareeb
 
Face recognition technology - BEST PPT
Face recognition technology - BEST PPTFace recognition technology - BEST PPT
Face recognition technology - BEST PPT
Siddharth Modi
 
Face recognition ppt
Face recognition pptFace recognition ppt
Face recognition ppt
Santosh Kumar
 

Viewers also liked (8)

Independent Research
Independent ResearchIndependent Research
Independent Research
 
Dissertation final report
Dissertation final reportDissertation final report
Dissertation final report
 
Face detection presentation slide
Face detection  presentation slideFace detection  presentation slide
Face detection presentation slide
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
 
Detection and recognition of face using neural network
Detection and recognition of face using neural networkDetection and recognition of face using neural network
Detection and recognition of face using neural network
 
Week6 face detection
Week6 face detectionWeek6 face detection
Week6 face detection
 
Face recognition technology - BEST PPT
Face recognition technology - BEST PPTFace recognition technology - BEST PPT
Face recognition technology - BEST PPT
 
Face recognition ppt
Face recognition pptFace recognition ppt
Face recognition ppt
 

Similar to Ppt for Online music store

WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
karthiksmart21
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
SachinSingh217687
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
slire
 
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
sindhu991994
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup72
 
Servlets api overview
Servlets api overviewServlets api overview
Servlets api overview
ramya marichamy
 
Servlet.pptx
Servlet.pptxServlet.pptx
Servlet.pptx
Senthil Kumar
 
Servlet.pptx
Servlet.pptxServlet.pptx
Servlet.pptx
SenthilKumar571813
 
Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC  Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC
vipin kumar
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai
raj esaki
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
Jafar Nesargi
 
4. J2EE.pptx
4. J2EE.pptx4. J2EE.pptx
4. J2EE.pptx
HariChandruduM
 
Devjyotippt
DevjyotipptDevjyotippt
Devjyotippt
Gaurav pathak
 
JEE Course - The Web Tier
JEE Course - The Web TierJEE Course - The Web Tier
JEE Course - The Web Tier
odedns
 
Servlet.ppt
Servlet.pptServlet.ppt
Servlet.ppt
VMahesh5
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
Raghu nath
 
Advance java1.1
Advance java1.1Advance java1.1
Advance java1.1
Prince Soni
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
 Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1... Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
WebStackAcademy
 
JAVA
JAVAJAVA
Java servlet technology
Java servlet technologyJava servlet technology
Java servlet technology
Minal Maniar
 

Similar to Ppt for Online music store (20)

WEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptxWEB TECHNOLOGY Unit-3.pptx
WEB TECHNOLOGY Unit-3.pptx
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
 
Intorduction to struts
Intorduction to strutsIntorduction to struts
Intorduction to struts
 
Servlets api overview
Servlets api overviewServlets api overview
Servlets api overview
 
Servlet.pptx
Servlet.pptxServlet.pptx
Servlet.pptx
 
Servlet.pptx
Servlet.pptxServlet.pptx
Servlet.pptx
 
Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC  Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
 
4. J2EE.pptx
4. J2EE.pptx4. J2EE.pptx
4. J2EE.pptx
 
Devjyotippt
DevjyotipptDevjyotippt
Devjyotippt
 
JEE Course - The Web Tier
JEE Course - The Web TierJEE Course - The Web Tier
JEE Course - The Web Tier
 
Servlet.ppt
Servlet.pptServlet.ppt
Servlet.ppt
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
 
Advance java1.1
Advance java1.1Advance java1.1
Advance java1.1
 
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
 Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1... Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 1...
 
JAVA
JAVAJAVA
JAVA
 
Java servlet technology
Java servlet technologyJava servlet technology
Java servlet technology
 

Recently uploaded

Conservation of Natural Resources Biodiversity.pptx
Conservation of Natural Resources Biodiversity.pptxConservation of Natural Resources Biodiversity.pptx
Conservation of Natural Resources Biodiversity.pptx
AdarshaMR1
 
Online airline reservation system project report.pdf
Online airline reservation system project report.pdfOnline airline reservation system project report.pdf
Online airline reservation system project report.pdf
Kamal Acharya
 
Data Visualization in Python of b.tech student.pptx
Data Visualization in Python of b.tech student.pptxData Visualization in Python of b.tech student.pptx
Data Visualization in Python of b.tech student.pptx
TelanganaPakkaFolk
 
Girls Call Chennai 000XX00000 Provide Best And Top Girl Service And No1 in City
Girls Call Chennai 000XX00000 Provide Best And Top Girl Service And No1 in CityGirls Call Chennai 000XX00000 Provide Best And Top Girl Service And No1 in City
Girls Call Chennai 000XX00000 Provide Best And Top Girl Service And No1 in City
sunnuchadda
 
Online toll plaza booking system project report.doc.pdf
Online toll plaza booking system project report.doc.pdfOnline toll plaza booking system project report.doc.pdf
Online toll plaza booking system project report.doc.pdf
Kamal Acharya
 
Time-State Analytics: MinneAnalytics 2024 Talk
Time-State Analytics: MinneAnalytics 2024 TalkTime-State Analytics: MinneAnalytics 2024 Talk
Time-State Analytics: MinneAnalytics 2024 Talk
Evan Chan
 
GUIA_LEGAL_CHAPTER-9_COLOMBIAN ELECTRICITY (1).pdf
GUIA_LEGAL_CHAPTER-9_COLOMBIAN ELECTRICITY (1).pdfGUIA_LEGAL_CHAPTER-9_COLOMBIAN ELECTRICITY (1).pdf
GUIA_LEGAL_CHAPTER-9_COLOMBIAN ELECTRICITY (1).pdf
ProexportColombia1
 
Adv. Digital Signal Processing LAB MANUAL.pdf
Adv. Digital Signal Processing LAB MANUAL.pdfAdv. Digital Signal Processing LAB MANUAL.pdf
Adv. Digital Signal Processing LAB MANUAL.pdf
T.D. Shashikala
 
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
Jim Mimlitz, P.E.
 
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
sanabts249
 
Ludo system project report management .pdf
Ludo  system project report management .pdfLudo  system project report management .pdf
Ludo system project report management .pdf
Kamal Acharya
 
DBMS Commands DDL DML DCL ENTITY RELATIONSHIP.pptx
DBMS Commands  DDL DML DCL ENTITY RELATIONSHIP.pptxDBMS Commands  DDL DML DCL ENTITY RELATIONSHIP.pptx
DBMS Commands DDL DML DCL ENTITY RELATIONSHIP.pptx
Tulasi72
 
Response & Safe AI at Summer School of AI at IIITH
Response & Safe AI at Summer School of AI at IIITHResponse & Safe AI at Summer School of AI at IIITH
Response & Safe AI at Summer School of AI at IIITH
IIIT Hyderabad
 
OSHA LOTO training, LOTO, lock out tag out
OSHA LOTO training, LOTO, lock out tag outOSHA LOTO training, LOTO, lock out tag out
OSHA LOTO training, LOTO, lock out tag out
Ateeb19
 
李易峰祝绪丹做爱视频流出【网芷:ht28.co】可爱学生妹>>>[网趾:ht28.co】]<<<
李易峰祝绪丹做爱视频流出【网芷:ht28.co】可爱学生妹>>>[网趾:ht28.co】]<<<李易峰祝绪丹做爱视频流出【网芷:ht28.co】可爱学生妹>>>[网趾:ht28.co】]<<<
李易峰祝绪丹做爱视频流出【网芷:ht28.co】可爱学生妹>>>[网趾:ht28.co】]<<<
amzhoxvzidbke
 
readers writers Problem in operating system
readers writers Problem in operating systemreaders writers Problem in operating system
readers writers Problem in operating system
VADAPALLYPRAVEENKUMA1
 
21EC63_Module1B.pptx VLSI design 21ec63 MOS TRANSISTOR THEORY
21EC63_Module1B.pptx VLSI design 21ec63 MOS TRANSISTOR THEORY21EC63_Module1B.pptx VLSI design 21ec63 MOS TRANSISTOR THEORY
21EC63_Module1B.pptx VLSI design 21ec63 MOS TRANSISTOR THEORY
PradeepKumarSK3
 
Best Practices of Clothing Businesses in Talavera, Nueva Ecija, A Foundation ...
Best Practices of Clothing Businesses in Talavera, Nueva Ecija, A Foundation ...Best Practices of Clothing Businesses in Talavera, Nueva Ecija, A Foundation ...
Best Practices of Clothing Businesses in Talavera, Nueva Ecija, A Foundation ...
IJAEMSJORNAL
 
Unit 1 Information Storage and Retrieval
Unit 1 Information Storage and RetrievalUnit 1 Information Storage and Retrieval
Unit 1 Information Storage and Retrieval
KishorMahale5
 
Disaster Management and Mitigation presentation
Disaster Management and Mitigation presentationDisaster Management and Mitigation presentation
Disaster Management and Mitigation presentation
RajaRamannaTarigoppu
 

Recently uploaded (20)

Conservation of Natural Resources Biodiversity.pptx
Conservation of Natural Resources Biodiversity.pptxConservation of Natural Resources Biodiversity.pptx
Conservation of Natural Resources Biodiversity.pptx
 
Online airline reservation system project report.pdf
Online airline reservation system project report.pdfOnline airline reservation system project report.pdf
Online airline reservation system project report.pdf
 
Data Visualization in Python of b.tech student.pptx
Data Visualization in Python of b.tech student.pptxData Visualization in Python of b.tech student.pptx
Data Visualization in Python of b.tech student.pptx
 
Girls Call Chennai 000XX00000 Provide Best And Top Girl Service And No1 in City
Girls Call Chennai 000XX00000 Provide Best And Top Girl Service And No1 in CityGirls Call Chennai 000XX00000 Provide Best And Top Girl Service And No1 in City
Girls Call Chennai 000XX00000 Provide Best And Top Girl Service And No1 in City
 
Online toll plaza booking system project report.doc.pdf
Online toll plaza booking system project report.doc.pdfOnline toll plaza booking system project report.doc.pdf
Online toll plaza booking system project report.doc.pdf
 
Time-State Analytics: MinneAnalytics 2024 Talk
Time-State Analytics: MinneAnalytics 2024 TalkTime-State Analytics: MinneAnalytics 2024 Talk
Time-State Analytics: MinneAnalytics 2024 Talk
 
GUIA_LEGAL_CHAPTER-9_COLOMBIAN ELECTRICITY (1).pdf
GUIA_LEGAL_CHAPTER-9_COLOMBIAN ELECTRICITY (1).pdfGUIA_LEGAL_CHAPTER-9_COLOMBIAN ELECTRICITY (1).pdf
GUIA_LEGAL_CHAPTER-9_COLOMBIAN ELECTRICITY (1).pdf
 
Adv. Digital Signal Processing LAB MANUAL.pdf
Adv. Digital Signal Processing LAB MANUAL.pdfAdv. Digital Signal Processing LAB MANUAL.pdf
Adv. Digital Signal Processing LAB MANUAL.pdf
 
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
SCADAmetrics Instrumentation for Sensus Water Meters - Core and Main Training...
 
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
21CV61- Module 3 (CONSTRUCTION MANAGEMENT AND ENTREPRENEURSHIP.pptx
 
Ludo system project report management .pdf
Ludo  system project report management .pdfLudo  system project report management .pdf
Ludo system project report management .pdf
 
DBMS Commands DDL DML DCL ENTITY RELATIONSHIP.pptx
DBMS Commands  DDL DML DCL ENTITY RELATIONSHIP.pptxDBMS Commands  DDL DML DCL ENTITY RELATIONSHIP.pptx
DBMS Commands DDL DML DCL ENTITY RELATIONSHIP.pptx
 
Response & Safe AI at Summer School of AI at IIITH
Response & Safe AI at Summer School of AI at IIITHResponse & Safe AI at Summer School of AI at IIITH
Response & Safe AI at Summer School of AI at IIITH
 
OSHA LOTO training, LOTO, lock out tag out
OSHA LOTO training, LOTO, lock out tag outOSHA LOTO training, LOTO, lock out tag out
OSHA LOTO training, LOTO, lock out tag out
 
李易峰祝绪丹做爱视频流出【网芷:ht28.co】可爱学生妹>>>[网趾:ht28.co】]<<<
李易峰祝绪丹做爱视频流出【网芷:ht28.co】可爱学生妹>>>[网趾:ht28.co】]<<<李易峰祝绪丹做爱视频流出【网芷:ht28.co】可爱学生妹>>>[网趾:ht28.co】]<<<
李易峰祝绪丹做爱视频流出【网芷:ht28.co】可爱学生妹>>>[网趾:ht28.co】]<<<
 
readers writers Problem in operating system
readers writers Problem in operating systemreaders writers Problem in operating system
readers writers Problem in operating system
 
21EC63_Module1B.pptx VLSI design 21ec63 MOS TRANSISTOR THEORY
21EC63_Module1B.pptx VLSI design 21ec63 MOS TRANSISTOR THEORY21EC63_Module1B.pptx VLSI design 21ec63 MOS TRANSISTOR THEORY
21EC63_Module1B.pptx VLSI design 21ec63 MOS TRANSISTOR THEORY
 
Best Practices of Clothing Businesses in Talavera, Nueva Ecija, A Foundation ...
Best Practices of Clothing Businesses in Talavera, Nueva Ecija, A Foundation ...Best Practices of Clothing Businesses in Talavera, Nueva Ecija, A Foundation ...
Best Practices of Clothing Businesses in Talavera, Nueva Ecija, A Foundation ...
 
Unit 1 Information Storage and Retrieval
Unit 1 Information Storage and RetrievalUnit 1 Information Storage and Retrieval
Unit 1 Information Storage and Retrieval
 
Disaster Management and Mitigation presentation
Disaster Management and Mitigation presentationDisaster Management and Mitigation presentation
Disaster Management and Mitigation presentation
 

Ppt for Online music store

  • 1. INDUSTRIAL TRAINING IN ADVANCED JAVA Submitted By:- Adeeba Nadeem 1364110002 C.S-4th year
  • 3.  INTRODUCTION TO ORGANIZATION  INTRODUCTION • Project Description • Project Purpose  SOFTWARE REQUIREMENTS  INTRODUCTION TO JAVA  J2EE  MVC ARCHITECTURE  JAVA SERVER PAGES  JAVA BEANS Contents
  • 4. Contents  SERVLETS  SERVLETS AND JSP  HOW SERVLETS WORKS? • Servlet API • Servlet Interface • Servlet Life Cycle • Cookies & Session  CREATING A SIMPLE SERVLET  JDBC  Conclusions  References
  • 5. IntRoDUCtIon to oRGAnIZAtIon A subsidiary of TATA CONSULTANCY SERVICES LIMITED (TCS Ltd), one of the world’s leading information technology consulting, services and business process outsourcing organizations. CMC execute large and complex turnkey projects and have built, managed and supported our customers IT systems across the value chain infrastructure, applications and business processes.
  • 6. PRojeCt DesCRIPtIon The purpose of this project is to: The E-Music World application is an Online Website for an Organization. It is a virtual showcase for different types of products like FILM, GHAZHAL,POP, DEVOTIONAL , and ROCK, CLASSICAL,FOLK etc.
  • 8. PRojeCt PURPose • The main aim of this project is to play Online music and very easily with free of cost. • The project “E-Music” after being tested and was found to overcoming all the problems of the existing system. The system is found to be error free and ready for implementation.
  • 9. FOLLOWING ARE THE FEATURES OF THIS PROJECT: •Login, View all Songs Request •Upload/delete Songs •Login, View , play a list of Songs •Track song request history
  • 10. SOFTWARE REQUIRMENTS • Operating System: Windows 7 or above • Front End: HTML & JAVA SCRIPT,J2EE(JSPs, Servlets ) • Web Server: Apache Tomcat 8.0.35/Glassfish • Back End : Oracle • Tools Used: My eclipse/Eclipse/Net Beans
  • 11. INTRODUCTION TO JAVA • Java is a programming language initially developed by Sun Microsystems and released as a principal component of Sun Microsystems Java Platform. Although the language gets much of its syntax from C and C++. • It has a less complicated object model and lesser low-level services. Java applications are typically compiled to byte code (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is a general purpose, object –oriented language that is specially designed to have a few implementation dependencies as possible. • Java is currently one of the most standard programming languages in use, and is extensively used from application software to web applications.
  • 12. J2EE • Short for Java 2 Platform Enterprise Edition,J2EE is a platform independent, Java centric environment from Sun for developing and deploying web based enterprise applications online. The J2EE platform consist of a services, APIs, and protocols that provide the functionality multitier, Web-based applications • Some of the key features and services of J2EE- • At the client tier, J2EE supports pure HTML, as well as Java applets or applications. It relies on Java Server Pages and Servlet code to create HTML or other formatted data for the client. • Enterprise Java Beans (EJBs) provide another layer where the platform’s logic is stored. An EJB server provides functions such as threading, Concurrency, Security, and memory management. These Services are transparent to the author.
  • 13. MVC ARCHITECTURE • Model-View –Controller (MVC) is an architecture tat separates the representation of information from the user’s interface with it. The mode consists of application data and business rules, and the controller mediates input, converting it to commands for the model or view. A view can be any output representation data ,such as chart or a diagram. Multiple views of the same data are possible, such as a pie chart for management and a tabular view for accountants .The central idea behind MVC is code reusability and separation of concerns.
  • 15. JAVA SERVER PAGES • Java Server Pages(JSP) is technology that helps software developers create dynamically generated web pages based on HTML, XML, or other document types. Released in 1999 by Sun Microsystems. JSP is similar to PHP, but it uses the Java programming language. • To deploy and run Java Server Pages, a compatible web server with a servlet container, such as Apache Tomcat or Jetty is required. • Java Server pages is a technology which permits software developers to create dynamic request like HTML, XML in order to answer to client request in the net. The syntax in Java Server Pages includes a supplementary XML tag which is known as JSP actions.
  • 16. JAVA BEANS • Java Beans are reusable software components for Java that can be manipulated visually in a builder tool. Practically ,they are classes written in the Java Programming language conforming to a particular convection. They are used to encapsulate many objects into a single object (the bean) so that they can be passed around as a single bean object instead of as multiple individual objects. A Java Bean is a Java Object that is serializable, has a null constructor, and allows access to properties using getter and setter methods.
  • 17. SERVLETS • When we run small Java programs within a browser these are referred to as Applets. . . • so we run small Java programs within a server these are “ Servlet ” • A servlet is a program designed to process a client request (which requires interactivity). – It processes arguments and formats its results as a short lived document. • HTML servlets are becoming a popular mechanism for creating interactive servers.
  • 18. SERVLETS AND JSP • Java Server Pages is an extension to the servlets API. • With conventional servlets you embed the HTML that you need inside a Java program. • With JSP you embed your Java program within a HTML document (by using special tags). • Works rather like JavaScript but the JSP script runs on the server before the page is dispatched to the user’s browser.
  • 19. HOW SERVLET WORKS? THE JAVA SERVLET API •The Java Servlet API is a set of Java classes which define a standard interface between a Web client and a Web servlet. Client requests are made to the Web server, which then invokes the servlet to service the request through this interface. •The API is composed of two packages: •Java x .servlet •Java x. Servlet .http •The Servlet interface class is the central abstraction of the Java Servlet API. This class defines the methods which servlets must implement including a service() method for the handling of requests.
  • 20. SERVLET INTERFACE • The Servlet interface class is the central abstraction of the Java Servlet API. This class defines the methods which servlets must implement including a service() method for the handling of requests. • The generic Servlet class implements this interface, and defines a generic , protocol- independent servlet. • To write an HTTP servlet for use on the web , we will use an even more specialized class of GenericServlet called Http Servlet. Http Servlet provides additional methods for the processing of HTTP requests such as GET(do Get Method) and POST (do post method). Although our servlets may implement a service method, in most cases we will implement the HTTP specific request handling methods of doGet and doPost.
  • 21. SERVLETS LIFE CYCLE The life cycle of a servlet can be categorized into four parts: •Loading and Instantiation: The servlet container loads the servlet during startup or when the first request is made. The loading of the servlet depends on the attribute <load on startup> of web.xml file. If the attribute <load on startup> has a positive value then the servlet is load with loading of the container otherwise it load when the first request comes for service. After loading of the servlet, the container creates the instances of the servlet.
  • 22. • Initialization: After creating the instances, the servlet container calls the init() method and passes the servlet initialization parameters to the init() method. The Init() method is called only once throughout the life cycle of the servlet. The servlet will be available for service if it is loaded successfully otherwise the servlet container unloads the servlet. • Destroying the Servlet: If the servlet is no longer needed for servicing any request, the servlet container calls the destroy() method. Like the init() method this method is also called only once throughout the life cycle of the servlet. Calling the destroy() method indicates to the servlet container not to sent the any request for service and the servlet releases all the resources associated with it. Java Virtual Machine claims for the memory associated with the resources for garbage collection.
  • 24. COOKIES & SESSIONS COOKIE •A Cookie is a small piece of text stored on a user’s computer by their browser. Common uses for cookies are authentication, storing of site preferences, shopping cart items, and server session identification. •Only the cookies stored by the browser that relate to the domain in the requested URL will be sent to the server. •In essence , a cookie is a great way of linking one page to the next for a user’s interaction with the web site or wenb application
  • 25. SESSION • A Session can be defined as a server-side storage of information that is desired to persist throughout the user’s interaction with the web site or web application.
  • 26. CrEatINg a SImplE SErvlEt • Servlets are written in a similar fashion to applets – Write a new servlet class which extends javax.servlet.http.HttpServlet (or just implements javax.servlet.Servlet) – Override certain methods to deal with requests – Get your methods to create an HTML document to return information to the client’s browser – Load the servlet byte codes onto your web server (for example apache/jserv)
  • 27. JDBC • The Java Database Connectivity (JDBC). API is the industry standard for database –Independent connectivity between the Java Programming language and a wide range of databases – SQL databases and other tabular data sources, such as spreadsheets or flat files. The JDBC API provides a call-level API for SQL – based database access. • JDBC technology allows you to use the programming language to exploit” Write Once, Runs Anywhere” capabilities for applications that require access to enterprise data. With a JDBC technology enabled driver, you can connect all corporate data even in a heterogeneous environment.
  • 28. CONClUSIONS • An E Music library is a project developed in Java to manage your music store. User can login, Register and creates its own music library, add songs, request to upload songs to administrator. The main aim of creating this Online Music Store System Java based web application is to provide user friendly tool for music web sites.
  • 29. rEFErENCES • For information about HTML try http://www.w3schools.com • You can download Sun’s servlet development kit from their web site at the http://java.sun.com/products/servlet • You can download apache’s Tomcat server from http://jakarta.apache.org • For other information about Servlet development try http://www.servlets.com