KEMBAR78
Java Training Ahmedabad , Introduction of java web development | PPTX
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)

Java Training Ahmedabad , Introduction of java web development

  • 1.
    By: NicheTech http://www.nichetechinstitute.com/ © NicheTech ComputerSolutions Pvt ltd Introduction of Java Web Development
  • 2.
    Web Development  Theterm 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 serverside 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
  • 6.
  • 7.
    connectivityClaas.java //Required import packages importjava.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)