Steps to create a servlet example Steps to create the servlet using Tomcat server Create a directory structure Create a Servlet Compile…
upload
-
-
Servlet with Annotation (feature of servlet3): Servlet with Annotation Example of simple servlet by annotation Annotation represents the metadata. If you use…
-
4) HttpSession interface HttpSession interface How to get the HttpSession object Commonly used methods of HttpSession interface Example of using HttpSession In…
-
Servlet Interface Servlet Interface Methods of Servlet interface Servlet interface provides commonbehaviorto all the servlets.Servlet interface defines methods that all servlets must…
-
ServletInputStream class ServletInputStream class Method of ServletInputStream class ServletInputStream class provides stream to read binary data such as image etc. from the…
-
ServletOutputStream class ServletOutputStream class Methods of ServletOutputStream class Example of ServletOutputStream class ServletOutputStream class provides a stream to write binary data into…
-
Session Tracking in Servlets Session Tracking Session Tracking Techniques Session simply means a particular interval of time. Session Tracking is a way…
-
RequestDispatcher in Servlet RequestDispatcher Interface Methods of RequestDispatcher interface forward method include method How to get the object of RequestDispatcher Example of…
-
SingleThreadModel interface SingleThreadModel interface Example of SingleThreadModel interface The servlet programmer should implement SingleThreadModel interface to ensure that servlet can handle only…
-
SendRedirect in servlet sendRedirect method Syntax of sendRedirect() method Example of RequestDispatcher interface The sendRedirect() method of HttpServletResponse interface can be used…