8. 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?
9. YEAH I KNOW THAT! THAT’S HTTP, XML,
(X)HTML(5), WS .. ALL THOSE RUBBISH!
BUT..
Source:http://onjava.com
10. 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!
13. 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!
16. 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?