| Course Others | You are Offering Professional Course | Locality Lakdi ka pul |
Servlets Online Training Ecorptrainings in Hyderabad in India.
The servlet is a Java programming language class used to extend the capabilities of a server. Although servlets can respond to any types of requests, they are commonly used to extend the applications hosted by web servers, so they can be thought of as Java applets that run on servers instead of in web browsers.These kinds of servlets are the Java counterpart to other dynamic Web content technologies such as PHP and ASP.NET. Technically speaking, a "servlet" is a Java class in Java EE that conforms to the Java Servlet API, a standard for implementing Java classes which respond to requests. Servlets could in principle communicate over any client server protocol, but they are most often used with the HTTP protocol. Thus "servlet" is often used as shorthand for "HTTP servlet".[3] Thus, a software developer may use a servlet to add dynamic content to a web server using the Java platform. The generated content is commonly HTML, but may be other data such as XML. Servlets can maintain state in session variables across many server transactions by using HTTP cookies, or URL rewriting.
Course Content
SERVLETS OVERVIEW
Servlets Tasks
Servlets Packages
SERVLETS ENVIRONMENT SETUP
Setting up Java Development Kit
Setting up Web Server: Tomcat
Setting Up the CLASSPATH
SERVLETS LIFE CYCLE
The init() Method
The service() Method.
The doGet() Method
The doPost() Method
The destroy() Method
Architecture Diagram
SERVLETS EXAMPLES
Sample Code
Compiling a Servlet
Servlet Deployment
SERVLETS FORM DATA
GET Method
POST Method
Reading Form Data using Servlet
GET Method Example using URL
GET Method Example Using Form
POST Method Example Using Form
Passing Checkbox Data to Servlet Program
Reading All Form Parameters
Servlets Client HTTP Request
Methods to read HTTP Header
HTTP Header Request Example
SERVLETS SERVER HTTP RESPONSE
Methods to Set HTTP Response Header
HTTP Header Response Example
SERVLETS HTTP STATUS CODES
Methods to Set HTTP Status Code
HTTP Status Code Example
SERVLETS WRITING FILTERS
Servlet Filter Methods
Servlet Filter Example
Servlet Filter Mapping in Web.xml
Using Multiple Filters
Filters Application Order
SERVLETS EXCEPTION HANDLING
web.xml Configuration
Request Attributes Errors/Exceptions.
Error Handler Servlet Example
SERVLETS COOKIES HANDLING
The Anatomy of a Cookie
Servlet Cookies Methods
Setting Cookies with Servlet
Reading Cookies with Servlet
Delete Cookies with Servlet
SERVLETS SESSION TRACKING
Cookies
Hidden Form Fields
URL Rewriting
The HttpSession Object
Session Tracking Example
Deleting Session Data
SERVLETS DATABASE ACCESS
Create Table
Create Data Records
Accessing a Database
SERVLETS FILE UPLOADING
Creating a File Upload Form
Writing Backend Servlet
Compile and Running Servlet
SERVLET HANDLING DATE
Getting Current Date & Time
Date Comparisons
Date Formatting using SimpleDateFormat
Simple DateFormat Format Codes
SERVLETS PAGE REDIRECTION
SERVLETS HITS COUNTER
SERVLETS AUTO PAGE REFRESH
SERVLETS SENDING EMAIL
Send a Simple Email
Send an HTML Email
Send Attachment in Email
User Authentication Part
SERVLETS PACKAGING
Creating Servlets in Packages
Compiling Servlets in Packages
Packaged Servlet Deployment
SERVLETS DEBUGGING
System.out.println()
Message Logging
Using JDB Debugger
Using Comments
Client and Server Headers
Important Debugging Tips
SERVLETS INTERNATIONALIZATION
Detecting Locale
Languages Setting
Locale Specific Dates
Locale Specific Currency
Locale Specific Percentage
SERVLET ANNOTATIONS
@WebServlet
@WebInitParam
@Webfilter