Your SlideShare is downloading. ×
0
01-Overview-and-Setup<br />DhrubojyotiKayal<br />
Introducing Servlets<br />Installing Tomcat <br />Installing Eclipse<br />Your first Java web application<br />Your first ...
Static HTML is so boring! – Dynamic content with Servlets<br />A Java program that runs on a server. <br />Follows a stand...
In Action<br />Servlet<br />RDBMS<br />Browser<br />Servlet<br />Server<br />JVM <br />
Efficient<br />Uses threads not OS processes, one servlet instance<br />Convenient<br />High level utility functions<br />...
Secure<br />No hazards related to process management<br />Popular<br />Most popular use of Java technology<br />Medium for...
Hands On Exercise<br />
Java web server<br />Servlet reference implementation<br />http://tomcat.apache.org<br />Tomcat 7 – Servlet 3<br />Tomcat ...
Eclipse IDE (http://www.eclipse.org)<br />Open Source and supported by all biggies in Java business<br />Eclipse 3.5 - Gal...
Setup new Tomcat 6 server<br />Start Server<br />Stop Server<br />Setup Tomcat on Eclipse<br />
Create workspace<br />Create web application using Eclipse<br />The project structure in Eclipse<br />Need for web.xml<br ...
Ah this web application does nothing<br />Let us create the first servlet on Eclipse<br />What has changed on the web.xml<...
Q&A<br />
Upcoming SlideShare
Loading in...5
×

01 overview-servlets-and-environment-setup

521

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
521
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "01 overview-servlets-and-environment-setup"

  1. 1. 01-Overview-and-Setup<br />DhrubojyotiKayal<br />
  2. 2. Introducing Servlets<br />Installing Tomcat <br />Installing Eclipse<br />Your first Java web application<br />Your first Servlet<br />Agenda<br />
  3. 3. Static HTML is so boring! – Dynamic content with Servlets<br />A Java program that runs on a server. <br />Follows a standard specification.<br />Standard way to register servlet.<br />Current version 3.0 (JSR 315)<br />We focus on 2.5 (JSR 154) as 3.0 is very new<br />Server forwards incoming request – headers, form data to registered servlet based on URL.<br />Servlet processes data, generates new data and passes back to the server which in turn forwards it to the browser<br />What is a servlet?<br />
  4. 4. In Action<br />Servlet<br />RDBMS<br />Browser<br />Servlet<br />Server<br />JVM <br />
  5. 5. Efficient<br />Uses threads not OS processes, one servlet instance<br />Convenient<br />High level utility functions<br />Powerful<br />Data processing, pooling, persistence<br />Portable<br />Runs on any OS where you get JVM<br />Inexpensive<br />Best in class open source servers to run servlets<br />Advantages <br />
  6. 6. Secure<br />No hazards related to process management<br />Popular<br />Most popular use of Java technology<br />Medium for large web apps of the scale of Google search <br />Supported by<br />Apache, IBM, Oracle, Jetty, Coucho …..<br />Runs on<br />Windows, Unix, MacOS, VMS, IBM Mainframe OS<br />Used for<br />All kinds of applications – airline, hotels, banking, insurance …..<br />Advantages <br />
  7. 7. Hands On Exercise<br />
  8. 8. Java web server<br />Servlet reference implementation<br />http://tomcat.apache.org<br />Tomcat 7 – Servlet 3<br />Tomcat 6 – Servlet 2.5<br />Download<br />Install<br />Run<br />See the web admin console<br />Shutdown<br />Tomcat <br />
  9. 9. Eclipse IDE (http://www.eclipse.org)<br />Open Source and supported by all biggies in Java business<br />Eclipse 3.5 - Galileo<br />Based on plug-in and OSGi core<br />Few essential plug-ins <br />Install Eclipse<br />Run Eclipse<br />Shutdown Eclipse<br />Eclipse IDE<br />
  10. 10. Setup new Tomcat 6 server<br />Start Server<br />Stop Server<br />Setup Tomcat on Eclipse<br />
  11. 11. Create workspace<br />Create web application using Eclipse<br />The project structure in Eclipse<br />Need for web.xml<br />Configure Tomcat 6 in Eclipse<br />What is deployed? – war file<br />Structure and contents of a blown up war file<br />Manual deployment on Tomcat<br />Deploy using admin console<br />First Web Application<br />
  12. 12. Ah this web application does nothing<br />Let us create the first servlet on Eclipse<br />What has changed on the web.xml<br />Deploy<br />What changes in the exploded war?<br />Lets send a request for our servlet<br />Hurray it responds<br />First servlet<br />
  13. 13. Q&A<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×