SlideShare a Scribd company logo
Java Web Programming



               Week 1
Java web programming
Java web programming
Java web programming
Java web programming
Java web programming
what is web programming?
Why Can’t We Have a Simple Java
            Main Class?

   How do I         How do you        How do the world
talk to a class?   talk to a class?    talk to a class?
YEAH I KNOW THAT! THAT’S HTTP, XML,
(X)HTML(5), WS .. ALL THOSE RUBBISH!
BUT..




Source:http://onjava.com
Some Movie Stars’ Names For Rest Of
      Your Life To Dream On!
Web Server/Servlet Container/Application
Server

HTTP/HTTPS : All of em’ understand these guys!

GET/POST .. again?

Browser : a genius!
Web/Application Servers
http://www.yarlithub.org:8080/yschool/crash/oops.html

                       Apache
                                               IIS



                           Websphere
                                                 weblogic




              Jetti!                   Netti
Model View Controller
Bite on JSP/Servlet
+ Servlet is your controller!
+ Container understand which request is for which
  servlet!
+ Servlet can read the request, “call the friend” if doesn’t
  know the answer! Then write the response.
   + That friend can be a “Model” Or a “Service”!
+ What is written in the response is the “VIEW” .. HTML

   Servlet is the controller, response is the view & person who
   knows the answer is the model!
Sample Servlet




Source : http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-First-Servlets.html
Result in Browser




http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-First-Servlets.html
Wait A Sec .. Where is this damn JSP?

 We should have
   – THINK
 written the html
content into a file!



                 If files vary then its
                 fine! … But if the
                 content vary?
An ultimate web application!
--

More Related Content

Viewers also liked (20)

PPT
Server side
philipsinter
 
KEY
Java web programming
Ching Yi Chan
 
PPT
Application Of Software Design Pattern
guest46da5428
 
PPTX
Servletarchitecture,lifecycle,get,post
vamsi krishna
 
PDF
Java web programming
Mumbai Academisc
 
PDF
use web template by Bootstrap
Caesar Chi
 
PDF
HTML5 Refresher
Ivano Malavolta
 
PDF
Java and the Web
Dmitry Buzdin
 
PPT
Java EE 02-First Servlet
Fernando Gil
 
ODP
Java Web Programming [1/9] : Introduction to Web Application
IMC Institute
 
PDF
Java Web Start - How Zhara POS Works
Yohan Liyanage
 
PPT
Web Technologies -- Servlets 4 unit slides
Sasidhar Kothuru
 
PDF
Java Course 12: XML & XSL, Web & Servlets
Anton Keks
 
PDF
Java Web Programming [3/9] : Servlet Advanced
IMC Institute
 
PPTX
Servlet and JSP Lifecycle
Halil İbrahim ÇELENLİ
 
PPTX
Observer Software Design Pattern
Nirthika Rajendran
 
PPT
Java Servlet
Rajiv Gupta
 
PPT
Web Application Introduction
shaojung
 
PPT
Programming paradigm and web programming
Mohammad Kamrul Hasan
 
PPT
Knowledge Sharing : Java Servlet
Fahmi Jafar
 
Server side
philipsinter
 
Java web programming
Ching Yi Chan
 
Application Of Software Design Pattern
guest46da5428
 
Servletarchitecture,lifecycle,get,post
vamsi krishna
 
Java web programming
Mumbai Academisc
 
use web template by Bootstrap
Caesar Chi
 
HTML5 Refresher
Ivano Malavolta
 
Java and the Web
Dmitry Buzdin
 
Java EE 02-First Servlet
Fernando Gil
 
Java Web Programming [1/9] : Introduction to Web Application
IMC Institute
 
Java Web Start - How Zhara POS Works
Yohan Liyanage
 
Web Technologies -- Servlets 4 unit slides
Sasidhar Kothuru
 
Java Course 12: XML & XSL, Web & Servlets
Anton Keks
 
Java Web Programming [3/9] : Servlet Advanced
IMC Institute
 
Servlet and JSP Lifecycle
Halil İbrahim ÇELENLİ
 
Observer Software Design Pattern
Nirthika Rajendran
 
Java Servlet
Rajiv Gupta
 
Web Application Introduction
shaojung
 
Programming paradigm and web programming
Mohammad Kamrul Hasan
 
Knowledge Sharing : Java Servlet
Fahmi Jafar
 

Similar to Java web programming (20)

PPT
Introduction to the Servlet / JSP course
JavaEE Trainers
 
PPTX
C:\fakepath\jsp01
Subhasis Nayak
 
PPTX
Java server pages
Apoorv Anand
 
PPTX
JSP overview
Amisha Narsingani
 
DOCX
Online grocery store
Kavita Sharma
 
PDF
Do We Need Containers Anyway?
Dmitry Buzdin
 
PDF
Softshake 2013 - Let's take this offline
Claire Reynaud
 
PPS
Flickr Php
royans
 
PPT
December 4 SDForum Java Sig Presentation
Jonathan Abrams
 
PDF
Introduction to JSP
Fulvio Corno
 
PDF
Ibm web sphere_job_interview_preparation_guide
Khemnath Chauhan
 
PDF
In Pursuit of the Holy Grail: Building Isomorphic JavaScript Apps
Spike Brehm
 
PDF
the-10-rest-commandments.pdf
DavorKolenc1
 
DOC
Spatial approximate string search Doc
Sudha Hari Tech Solution Pvt ltd
 
PDF
J2EE_Course_Content
MV Solutions
 
PPT
JSP Part 1
DeeptiJava
 
PDF
02 servlet-basics
snopteck
 
PPTX
Follow these reasons to know java’s importance
nishajj
 
PPT
JSP 1.pptdfdfdfdsfdsfdsfdsfdsgdgdgdgdgdd
zmulani8
 
PPT
JEE Course - The Web Tier
odedns
 
Introduction to the Servlet / JSP course
JavaEE Trainers
 
C:\fakepath\jsp01
Subhasis Nayak
 
Java server pages
Apoorv Anand
 
JSP overview
Amisha Narsingani
 
Online grocery store
Kavita Sharma
 
Do We Need Containers Anyway?
Dmitry Buzdin
 
Softshake 2013 - Let's take this offline
Claire Reynaud
 
Flickr Php
royans
 
December 4 SDForum Java Sig Presentation
Jonathan Abrams
 
Introduction to JSP
Fulvio Corno
 
Ibm web sphere_job_interview_preparation_guide
Khemnath Chauhan
 
In Pursuit of the Holy Grail: Building Isomorphic JavaScript Apps
Spike Brehm
 
the-10-rest-commandments.pdf
DavorKolenc1
 
Spatial approximate string search Doc
Sudha Hari Tech Solution Pvt ltd
 
J2EE_Course_Content
MV Solutions
 
JSP Part 1
DeeptiJava
 
02 servlet-basics
snopteck
 
Follow these reasons to know java’s importance
nishajj
 
JSP 1.pptdfdfdfdsfdsfdsfdsfdsgdgdgdgdgdd
zmulani8
 
JEE Course - The Web Tier
odedns
 
Ad

Recently uploaded (20)

PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Ad

Java web programming