By Dr. Kodge Bheemashankar G

Slides:



Advertisements
Similar presentations
Technology Overview JAVA Servlets CS-611 S. Witherspoon.
Advertisements

J.Sant Servlets Joseph Sant Sheridan Institute of Technology.
Server-Side vs. Client-Side Scripting Languages
JSP: JavaServer Pages Juan Cruz Kevin Hessels Ian Moon.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Apache Tomcat Web Server MOHD NORFAIZI MIHSANY (A91391)
WEB1P servintro1 Introduction to servlets and JSP Dr Jim Briggs.
Introduction to Web Interface Technology (CSE2030)
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
Java Server Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
Objectives:1. Investigate the Web application deployment descriptor 2. Install and deploy Tomcat and struts 3. Design and deploy a struts application Struts.
Tomcat Configuration A Very, Very, Very Brief Overview.
Web programming for project students Dr Jim Briggs.
Session-01. What is a Servlet? Servlet can be described in many ways, depending on the context: 1.Servlet is a technology i.e. used to create web application.
Apache Jakarta Tomcat Suh, Junho. Road Map Tomcat Overview Tomcat Overview History History What is Tomcat? What is Tomcat? Servlet Container.
Java Server Programming Jeff Schmitt Towson University October 15, 1998.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Configuring Apache tomcat Specifying the server port NOTE: Edit the install_dir/conf/server.xml and change the port attribute of the connector element.
Tomcat Celsina Bignoli History of Tomcat Tomcat is the result of the integration of two groups of developers. – JServ, an open source.
Intro to Servlets Lec 26. Web-Based Enterprise Applications in Java Figure shows a simplified view of one application and its layers.
Java Pet Store Application. Outline Introduction Introduction Information Layer Information Layer Application Layer Application Layer Infrastructure Layer.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
J2EE training: 1 Course Material Usage Rules PowerPoint slides for use only in full-semester, for-credit courses at degree-granting.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Apache Tomcat Web Server SNU OOPSLA Lab. October 2005.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Applets & Servlets.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Servlets Environment Setup. Agenda:  Setting up Java Development Kit  Setting up Web Server: Tomcat  Setting up CLASSPATH.
AN OVERVIEW OF SERVLET TECHNOLOGY SERVER SETUP AND CONFIGURATION WEB APPLICATION STRUCTURE BASIC SERVLET EXAMPLE Java Servlets - Compiled By Nitin Pai.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Chapter 2 An Overview of Servlet and JSP Technology.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
JSP Server Integrated with Oracle8i Project2, CMSC691X Summer02 Ching-li Peng Ying Zhang.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
Introduction and Principles Web Server Scripting.
STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )
NJIT 1 Apache Tomcat (Version 6.0) THETOPPERSWAY.COM.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
1 Web Programming with Servlets & JSPs WEB APPLICATIONS – AN OVERVIEW.
Java Servlets References: Karen Anewalt, Mary Washington College.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Java Server Pages Can web pages be created specially for each user?
Web Programming Language
Servlets.
JSP (Java Server Page) JSP is server side technology which is used to create dynamic web pages just like Servlet technology. This is mainly used for implementing.
Introduction and Principles
Tomcat Celsina Bignoli
Web Software Model CS 4640 Programming Languages for Web Applications
Introduction to Java Servlets on Jakarta Tomcat
PHP / MySQL Introduction
Web App vs Mobile App.
MSIS 655 Advanced Business Applications Programming
Apache Tomcat Web Server
Chapter 27 WWW and HTTP.
Using Servlet Contexts to Deploy Servlets
Java Servlet Ziad A. Al-Sharif.
Introduction to Servlets
Objectives In this lesson you will learn about: Need for servlets
A Network Operating System Edited By Maysoon AlDuwais
COP 4610L: Applications in the Enterprise Spring 2005
Lecture 5: Functions and Parameters
Chengyu Sun California State University, Los Angeles
J2EE Lecture 1:Servlet and JSP
Installing Tomcat.
Web Servers (IIS and Apache)
Web Application Development Using PHP
Presentation transcript:

By Dr. Kodge Bheemashankar G JSP, Servlets & Struts Servlets and JSP technologies has become the technology of choice for developing online stores, interactive web applications and dynamic web sites. By Dr. Kodge Bheemashankar G

By Dr. Kodge Bheemashankar G Java Server Pages (JSP) is a Java technology that helps software developers serve dynamically generated web pages based on HTML, XML, or other document types. Released in 1999 as Sun's answer to ASP and PHP. JSP was designed to address the perception that the Java programming environment didn't provide developers with enough support for the Web. To deploy and run, a compatible web server with servlet container is required. The Java Servlet and the JavaServer Pages (JSP) specifications from Sun Microsystems and the JCP must both be met by the container. By Dr. Kodge Bheemashankar G

An overview of Servlets & JSP Tech. A Servlets Jobs: Servlets are Java Programs that run on web or application server, acting as a middle layer between request coming from web browsers or other http clients and data bases. Their job is to performing following tasks 1) Read the explicit data sent by the client 2) Read the implicit HTTP request data sent by the browser 3) Generate the result 4) Send the explicit data to client 5) Send the implicit HTTP response data By Dr. Kodge Bheemashankar G

An overview of Servlets & JSP Tech. Why build web page dynamically? The web pages build dynamically due to the followings reason. 1) The web page is based on data sent by the client 2) The web page is derived from the data that changes frequently 3) The web page uses information from corporate databases or other server side sources. By Dr. Kodge Bheemashankar G

An overview of Servlets & JSP Tech. The advantages of servlets over “Traditional” CGI Over the traditional CGI, the Java Servlets are more easier to use because the followings are few advantages of Java Servlets. 1) Efficient due to JVM and Multithreading 2) Convenient due to the knowledge of Java 3) Powerful and direct communication to web server 4) Portable in any platform 5) Inexpensive due to freeware 6) Secure from shell program, array/string bound, By Dr. Kodge Bheemashankar G

An overview of Servlets & JSP Tech. The Role of JSP The servlets are Java programs with HTML embedded inside of them. JSP is just an another way of writing servlets. JSP pages get translated into servlets, the servlets gets compiled, and it is the servlet that run at request time. JSP is simplifying the creation and maintenance of the HTML. Servlets are the best at invoking the business logic and performing complicated operations. Servlets are best for tasks oriented towards processing JSP is best for task oriented towards presentation. Servlets are the right choice, ang JSP is a better option By Dr. Kodge Bheemashankar G

An overview of Servlets & JSP Tech. Download and install J2SDK Download & install J2SDK and set PATH Download a server implements servelet 2.3 (JSP1.2) http://tomcat.apache.org 3) Configure the server (show SDK path & Port : 80) 4) Setup the development environment (CLASSPATH) 5) Test your setup (Server homepage) 6) Establish a simplified deployment method (copying resource) 7) Create custom web application By Dr. Kodge Bheemashankar G

An overview of Servlets & JSP Tech. Configuring Apache Tomcat Setting the JAVA_HOME variables Specifying the server port from 8080 to 80. enabling the root context install_dir/conf/server.xml Increasing DOS memory limits Setting CATALINA_HOME for server path. By Dr. Kodge Bheemashankar G

An overview of Servlets & JSP Tech. Testing your setup To verify that you have configured Tomcat successfully, Open a browser and enter http://localhost/ By Dr. Kodge Bheemashankar G

An overview of Servlets & JSP Tech. Web Applications: A Preview Make a Directory whose structure mirrors the structure of the default web applications. Update your classpath Register web applications with server Use URL prefix to invoke servlets or HTML/JSP Assign custom URLs for all your servlets. By Dr. Kodge Bheemashankar G