5. servlets

378 views

Published on

JSP (Java Server Pages) Lecture # 5
Breif detail lecture about the JSP Servlets with example code the tutorial thing such as how to create, deploy etc etc

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

  • Be the first to like this

No Downloads
Views
Total views
378
On SlideShare
0
From Embeds
0
Number of Embeds
141
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

5. servlets

  1. 1. IMRAN DAUDFOUNDATION UNIVERSITYINSTITUTE OF MANAGEMENT ANDCOMPUTER SCIENCESImran DaudFUIMCSWeb EngineeringServlets
  2. 2. What is Servlet? A class used to extend the capabilities of servers thathost applications accessed via a request-responseprogramming model.
  3. 3.  Servlet handles request and response objects. User requests by Get of Post method. Package “javax.servlet.http” Servlet contains two main Interfaces HttpServletRequest HttpServletResponse Creates new thread for each servlet and calls serveltservices.
  4. 4. 
  5. 5. Servlet Works
  6. 6. How to Create Servlet Create Web project as normal(as we did whilecreasting JSP project) Right click on Source Packages and create newservlet. Set action to servlet in first page in form tag(onlyname with no extension) Run project
  7. 7. Practice Make Website Counter using servlet… Servlet to send form to be filled by user and againreturned to same servlet.
  8. 8. Reference http://www.csl.mtu.edu/cs2321/ Netbeans.org Roseindia.net Jsptut.com tutorialspoint.com/jsp http://java.sun.com

×