Servlet Miscellaneous
Fetching records
Here, you will learn that how to fetch result for the given rollno. I am assuming that there is a table as given below: CREATE TABLE “RESULT”…
SingleThreadModel
The servlet programmer should implement SingleThreadModel interface to ensure that servlet can handle only one request at a time. It is a marker interface, means…
AnnotationServlet
Annotation represents the metadata. If you use annotation, deployment descriptor (web.xml file) is not required. But you should have tomcat7 as it will not run…
ServletOutputStream Class
ServletOutputStream class provides a stream to write binary data into the response. It is an abstract class. The getOutputStream() method of ServletResponse interface returns the…
ServletInputStream
ServletInputStream class provides stream to read binary data such as image etc. from the request object. It is an abstract class. The getInputStream() method of…