-
- Basic Programs
- Servlets Introduction, Tutorial, Architecture
- First Servlet Step-by-Step Explanation – Login Screen Validation
- 7 Steps – Servlets Tomcat Execution
- Deployment Descriptor – web.xml
- Sending dynamically filled HTML form to client
- Sending static HTML form to Client (sendRedirect)
- Read all Form data at a time – getParameterNames() Example -I
- Read all HTML Form Fields at a time with getParameterNames() Example – II
- Read From fields of same name – getParameterValues() Example
- Handling the client request – 3 Styles
- GET vs POST – 12 Differences – Which to prefer?
-
- Retrieving Client Information with request object
- Client’s Browser data with getHeaderNames() and getHeader()
- getRequestURL() method Example
- getRequestURI() Method Example
- Difference between getRequestURL() and getRequestURI()
- getRemoteAddr() Method Example
- getRemoteHost() Method Example
- Difference between getRemoteAddr() and getRemoteHost()
- getQueryString() Method Example
- getContentLength() Method Example
- getServletPath() Method Example
- getMethod() Method Example
- getProtocol() Method Example
- getScheme() Method Example
- Difference between getProtocol() and getScheme()
- getServerPort() Method Example
- isSecure() Method Example
-
- Using response object of HttpServletResponse
- sendRedirect Method Example
- Alternative to PrintWriter – ServletOutputStream Example – When to prefer?
-
- Servlet Communication
- What is ServletConfig interface?
- What is ServletContext interface?
- Difference between ServletConfig and ServletContext
- <init-param> Example with ServletConfig
- <context-param> Example with ServletContext
- Difference between <init-param> and <context-param>
- RequestDispatcher include Example
- RequestDispatcher forward Example
- 16 differences between include and forward
- 20 differences between forward and sendRedirect
- Difference between RequestDispatcher from ServletRequest and ServletContext
-
- Session Tracking
- HTTP Protocol – Stateless and Connectionless
- Session, Session Tracking, Session Management, JSESSIONID
- HTTP Session and HttpSession Methods
- Session Tracking with HttpSession – Hit Count
- Cookie API Methods
- Cookies Simple Shopping Cart Example
- Life Cycle Tutorial with Life Methods
- Life Cycle Example with JDBC
-
- WAR File Creation and Deployment
- WAR File creation in Tomcat
- WAR File creation in Weblogic
- Servlets Made Simple: Learn through Questions/Answers
- 15 Advantages of Servlets over CGI and ASP
- 10 Advantages of Servlets over ASP
- Can we write constructor in Servlet Example?
- What is MIME type in Servlets?
- More on response.setContentType()
- Sending Image to Client
- Feedback Form Example – Using all types of Form fields
- Multiple Submit Buttons in a single HTML Form
- What is SingleThreadModel?
- Auto Page Refresh with Servlets setHeader()
- ServletContext.getResourceAsStream
- MISCELLANEOUS