Java web programming

1,315 views

Published on

Week1 Session1 of first Yarl IT Hub Crash Course on Java Web Programming!

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,315
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Java web programming

  1. 1. Java Web Programming Week 1
  2. 2. what is web programming?
  3. 3. Why Can’t We Have a Simple Java Main Class? How do I How do you How do the worldtalk to a class? talk to a class? talk to a class?
  4. 4. YEAH I KNOW THAT! THAT’S HTTP, XML,(X)HTML(5), WS .. ALL THOSE RUBBISH!BUT..Source:http://onjava.com
  5. 5. Some Movie Stars’ Names For Rest Of Your Life To Dream On!Web Server/Servlet Container/ApplicationServerHTTP/HTTPS : All of em’ understand these guys!GET/POST .. again?Browser : a genius!
  6. 6. Web/Application Servershttp://www.yarlithub.org:8080/yschool/crash/oops.html Apache IIS Websphere weblogic Jetti! Netti
  7. 7. Model View Controller
  8. 8. 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!
  9. 9. Sample ServletSource : http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-First-Servlets.html
  10. 10. Result in Browserhttp://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-First-Servlets.html
  11. 11. Wait A Sec .. Where is this damn JSP? We should have – THINK written the htmlcontent into a file! If files vary then its fine! … But if the content vary?
  12. 12. An ultimate web application!
  13. 13. --

×