SlideShare une entreprise Scribd logo
1  sur  10
By:
NicheTech
http://www.nichetechinstitute.com/
© NicheTech Computer Solutions Pvt ltd
Introduction of Java Web
Development
Web Development
 The term Web development is used for several different
activities which are linked to the developing of a website
especially for the WWW which is the World Wide Web
or also called as an intranet.
 The Web development strategies include the business
of the e-commerce, the web designing, the web content
development, the client and sever-side coding and also
the configuration of the web server.
 The web development can be branched into two main
categories, the Client Side Coding and the Server Side
Coding. The roles of a web developer generally include
the Graphic and Web designing, information
architecture and the copyediting with the usability of the
web and the optimization of the search engine.
Types of server side web
development languages
 ASP (Active Server Page)
 PHP (Hypertext Preprocessor)
 Cold Fusion
 ASP.NET
 Servlet/Jsp
What is Servlet
 A servlet is any Java class that can be invoked
and executed on a server, usually on behalf of a
client. A servlet works on the server, while an
applet works on the client. An HTTP servlet is a
Java class that handles an HTTP request and
delivers an HTTP response. HTTP servlets reside
on an HTTP server and must extend the Java
javax.servlet.http.Http Servlet Class so that they
can run in a generic servlet engine framework.
What is JSP?
 JSP (a TLA for Java Server Pages) is a server-
side implementation of the java language. Very
similar in structure to ASP, it enables the
developer to build dynamic websites and
incorporate the flexibility of java, XML etc.
 One of the most powerful features of JSP is that
you can access JavaBeans and Enterprise
JavaBeans (EJB) components from a JSP file.
 JavaBeans can be class files, serialized
Beans, Beans that are dynamically generated by
a servlet, or a servlet itself. Each JSP is
automatically compiled to a servlet by the JSP
engine, the first time it is requested, and then
executed
Java Database Connectivity Example
connectivityClaas.java
//Required import packages
import java.io.*;
import java.util.*;
import javax.sql.*;
import javax.servlet.*;
import javax.servlet. Http.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
//class Nmae Declration
 public class connectivityClaas extends HttpServlet
 {
// connecting to database object
Connection cn = null;
Statement st = null;
ResultSet rs = null;
try {
Class.forName("com.mysql.jdbc.Driver");
con =DriverManager.getConnection
(“localhost/Testexample", "root","root");
stmt = con.createStatement();
rs = stmt.executeQuery("SELECT * FROM stud");
{
// displaying records
while(rs.next()){
out.println(“No::”);
out.println("ttt");
out.println(“ Name::“);
out.println("<br>");
out.println(rs.getObject(1).toString());
out.println("ttt");
out.println(rs.getObject(2).toString());
out.println("<br>");
}
} catch (Exception){}
}
Thanks
 Surendra Kunwar
 NicheTech Com Sol Pvt Ltd
 Our Sites
1) http://www.nichetechsolutions.com/
(Development)
2) http://www.nichetechinstitute.com/ (NicheTech
Gurukul)
3) http://www.liveprojecttraining.in/ ( Live Project
Training Details)
4) https://www.facebook.com/nichetechinstituteIndi
a ( For Daily Updates)

Contenu connexe

Tendances

Modularize JavaScript with RequireJS
Modularize JavaScript with RequireJSModularize JavaScript with RequireJS
Modularize JavaScript with RequireJS
Minh Hoang
 
Active Server Page(ASP)
Active Server Page(ASP)Active Server Page(ASP)
Active Server Page(ASP)
Keshab Nath
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
Buu Nguyen
 
Web Application Development using PHP and MySQL
Web Application Development using PHP and MySQLWeb Application Development using PHP and MySQL
Web Application Development using PHP and MySQL
Ganesh Kamath
 

Tendances (20)

Cgi perl
Cgi  perlCgi  perl
Cgi perl
 
Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
 
Require.JS
Require.JSRequire.JS
Require.JS
 
Modularize JavaScript with RequireJS
Modularize JavaScript with RequireJSModularize JavaScript with RequireJS
Modularize JavaScript with RequireJS
 
Less & RequireJS - Frontend Development in Magento 2
Less & RequireJS - Frontend Development in Magento 2Less & RequireJS - Frontend Development in Magento 2
Less & RequireJS - Frontend Development in Magento 2
 
Client and server side scripting
Client and server side scriptingClient and server side scripting
Client and server side scripting
 
ADP - Chapter 1 Introducing Web Application Development
ADP - Chapter 1 Introducing Web Application DevelopmentADP - Chapter 1 Introducing Web Application Development
ADP - Chapter 1 Introducing Web Application Development
 
Server and Client side comparision
Server and Client side comparisionServer and Client side comparision
Server and Client side comparision
 
Active Server Page(ASP)
Active Server Page(ASP)Active Server Page(ASP)
Active Server Page(ASP)
 
Modern Applications With Asp.net Core 5 and Vue JS 3
Modern Applications With Asp.net Core 5 and Vue JS 3Modern Applications With Asp.net Core 5 and Vue JS 3
Modern Applications With Asp.net Core 5 and Vue JS 3
 
Client side scripting and server side scripting
Client side scripting and server side scriptingClient side scripting and server side scripting
Client side scripting and server side scripting
 
Web forms and server side scripting
Web forms and server side scriptingWeb forms and server side scripting
Web forms and server side scripting
 
Single Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJSSingle Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJS
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
 
Server side scripting
Server side scriptingServer side scripting
Server side scripting
 
Java server pages
Java server pagesJava server pages
Java server pages
 
Client & server side scripting
Client & server side scriptingClient & server side scripting
Client & server side scripting
 
Dynamic web pages in java
Dynamic web pages in javaDynamic web pages in java
Dynamic web pages in java
 
Client server 01
Client server 01Client server 01
Client server 01
 
Web Application Development using PHP and MySQL
Web Application Development using PHP and MySQLWeb Application Development using PHP and MySQL
Web Application Development using PHP and MySQL
 

Similaire à Java Training Ahmedabad , Introduction of java web development

Servlets and jsp pages best practices
Servlets and jsp pages best practicesServlets and jsp pages best practices
Servlets and jsp pages best practices
ejjavies
 
Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
Д. Ганаа
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
KalsoomTahir2
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
Raghu nath
 
Project Presentation on Advance Java
Project Presentation on Advance JavaProject Presentation on Advance Java
Project Presentation on Advance Java
Vikas Goyal
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
Jafar Nesargi
 

Similaire à Java Training Ahmedabad , Introduction of java web development (20)

Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
 
Devjyotippt
DevjyotipptDevjyotippt
Devjyotippt
 
JEE Course - The Web Tier
JEE Course - The Web TierJEE Course - The Web Tier
JEE Course - The Web Tier
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
Servlets and jsp pages best practices
Servlets and jsp pages best practicesServlets and jsp pages best practices
Servlets and jsp pages best practices
 
JSP overview
JSP overviewJSP overview
JSP overview
 
Introduction to Enterprise Applications and Tools
Introduction to Enterprise Applications and ToolsIntroduction to Enterprise Applications and Tools
Introduction to Enterprise Applications and Tools
 
Java web developer tools
Java web developer toolsJava web developer tools
Java web developer tools
 
Ibm web sphere application server interview questions
Ibm web sphere application server interview questionsIbm web sphere application server interview questions
Ibm web sphere application server interview questions
 
Lecture 19 dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
 
Servlets
ServletsServlets
Servlets
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
 
Project Presentation on Advance Java
Project Presentation on Advance JavaProject Presentation on Advance Java
Project Presentation on Advance Java
 
Jsp tutorial
Jsp tutorialJsp tutorial
Jsp tutorial
 
J2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - ComponentsJ2EE - JSP-Servlet- Container - Components
J2EE - JSP-Servlet- Container - Components
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
 
Frameworks in java
Frameworks in javaFrameworks in java
Frameworks in java
 

Plus de NicheTech Com. Solutions Pvt. Ltd.

Plus de NicheTech Com. Solutions Pvt. Ltd. (10)

Java Training Ahmedabad , how to Insert Data in Servlet, iOS Classes Ahmedabad
Java Training Ahmedabad , how to Insert Data in Servlet, iOS Classes AhmedabadJava Training Ahmedabad , how to Insert Data in Servlet, iOS Classes Ahmedabad
Java Training Ahmedabad , how to Insert Data in Servlet, iOS Classes Ahmedabad
 
Android Training Ahmedabad , Android Course Ahmedabad, Android architecture
Android Training Ahmedabad , Android Course Ahmedabad, Android architectureAndroid Training Ahmedabad , Android Course Ahmedabad, Android architecture
Android Training Ahmedabad , Android Course Ahmedabad, Android architecture
 
Cocoa and MVC in ios, iOS Training Ahmedbad , iOS classes Ahmedabad
Cocoa and MVC in ios, iOS Training Ahmedbad , iOS classes Ahmedabad Cocoa and MVC in ios, iOS Training Ahmedbad , iOS classes Ahmedabad
Cocoa and MVC in ios, iOS Training Ahmedbad , iOS classes Ahmedabad
 
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
 
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course AhmedabadIntroduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
 
Basic Android
Basic AndroidBasic Android
Basic Android
 
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
 
Introduction of Mastert page
Introduction of Mastert pageIntroduction of Mastert page
Introduction of Mastert page
 
Introduction of wordpress, Wordpress Training Ahmedabad, Wordpress Class Ahme...
Introduction of wordpress, Wordpress Training Ahmedabad, Wordpress Class Ahme...Introduction of wordpress, Wordpress Training Ahmedabad, Wordpress Class Ahme...
Introduction of wordpress, Wordpress Training Ahmedabad, Wordpress Class Ahme...
 
Introduction of Oscommerce, PHP Live Project Training Ahmedabad, PHP Course A...
Introduction of Oscommerce, PHP Live Project Training Ahmedabad, PHP Course A...Introduction of Oscommerce, PHP Live Project Training Ahmedabad, PHP Course A...
Introduction of Oscommerce, PHP Live Project Training Ahmedabad, PHP Course A...
 

Dernier

Dernier (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 

Java Training Ahmedabad , Introduction of java web development

  • 1. By: NicheTech http://www.nichetechinstitute.com/ © NicheTech Computer Solutions Pvt ltd Introduction of Java Web Development
  • 2. Web Development  The term Web development is used for several different activities which are linked to the developing of a website especially for the WWW which is the World Wide Web or also called as an intranet.  The Web development strategies include the business of the e-commerce, the web designing, the web content development, the client and sever-side coding and also the configuration of the web server.  The web development can be branched into two main categories, the Client Side Coding and the Server Side Coding. The roles of a web developer generally include the Graphic and Web designing, information architecture and the copyediting with the usability of the web and the optimization of the search engine.
  • 3. Types of server side web development languages  ASP (Active Server Page)  PHP (Hypertext Preprocessor)  Cold Fusion  ASP.NET  Servlet/Jsp
  • 4. What is Servlet  A servlet is any Java class that can be invoked and executed on a server, usually on behalf of a client. A servlet works on the server, while an applet works on the client. An HTTP servlet is a Java class that handles an HTTP request and delivers an HTTP response. HTTP servlets reside on an HTTP server and must extend the Java javax.servlet.http.Http Servlet Class so that they can run in a generic servlet engine framework.
  • 5. What is JSP?  JSP (a TLA for Java Server Pages) is a server- side implementation of the java language. Very similar in structure to ASP, it enables the developer to build dynamic websites and incorporate the flexibility of java, XML etc.  One of the most powerful features of JSP is that you can access JavaBeans and Enterprise JavaBeans (EJB) components from a JSP file.  JavaBeans can be class files, serialized Beans, Beans that are dynamically generated by a servlet, or a servlet itself. Each JSP is automatically compiled to a servlet by the JSP engine, the first time it is requested, and then executed
  • 7. connectivityClaas.java //Required import packages import java.io.*; import java.util.*; import javax.sql.*; import javax.servlet.*; import javax.servlet. Http.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;
  • 8. //class Nmae Declration  public class connectivityClaas extends HttpServlet  { // connecting to database object Connection cn = null; Statement st = null; ResultSet rs = null; try { Class.forName("com.mysql.jdbc.Driver"); con =DriverManager.getConnection (“localhost/Testexample", "root","root"); stmt = con.createStatement(); rs = stmt.executeQuery("SELECT * FROM stud"); {
  • 9. // displaying records while(rs.next()){ out.println(“No::”); out.println("ttt"); out.println(“ Name::“); out.println("<br>"); out.println(rs.getObject(1).toString()); out.println("ttt"); out.println(rs.getObject(2).toString()); out.println("<br>"); } } catch (Exception){} }
  • 10. Thanks  Surendra Kunwar  NicheTech Com Sol Pvt Ltd  Our Sites 1) http://www.nichetechsolutions.com/ (Development) 2) http://www.nichetechinstitute.com/ (NicheTech Gurukul) 3) http://www.liveprojecttraining.in/ ( Live Project Training Details) 4) https://www.facebook.com/nichetechinstituteIndi a ( For Daily Updates)