answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: Why we extends GenericServlet while writing a servlet program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Generic Servlet and HTTP Servlet?

javax.servlet.GenericServletSignature: public abstract class GenericServlet extends java.lang.Object implements Servlet, ServletConfig, java.io.SerializableGenericServlet defines a generic, protocol-independent servlet.GenericServlet gives a blueprint and makes writing servlet easier.GenericServlet provides simple versions of the lifecycle methods init and destroy and of the methods in the ServletConfig interface.GenericServlet implements the log method, declared in the ServletContext interface.To write a generic servlet, it is sufficient to override the abstract service method.javax.servlet.http.HttpServletSignature: public abstract class HttpServlet extends GenericServlet implements java.io.SerializableHttpServlet defines a HTTP protocol specific servlet.HttpServlet gives a blueprint for Http servlet and makes writing them easier.HttpServlet extends the GenericServlet and hence inherits the properties GenericServlet.


How do you get the image file from the database with JSP?

You can retrieve an image file from a database in JSP by writing a servlet that fetches the image from the database and streams it to the JSP page. The servlet will set the content type to "image/jpeg" or the appropriate image format and write the image data to the response output stream. In the JSP page, you can then display the image by setting the source attribute of the img tag to the servlet URL.


How do you get a program to stop writing to a file without closing the program?

Not possible.


What do stylophiles collect?

Stylophiles are people interested in fine writing instruments such as fountain pens and quills. The hobby also extends to various writing inks and papers.


What is the institute for excellence in writing program?

The Institute for Excellence in Writing program is a program designed by a man named Andrew Pudewa for writing teachers. Its is a fun way to learn the proper way of writing, and homeschooling moms and teachers use it especially. It is a awesome program, and the kids that use it learn things almost automatically. It's really awesome.


What is the sequnce to writing tha c program?

Writing the source(s).Compilation and linkage.Execution.


What computer program is used for writing non fiction?

There is no one particular program used.


What program is doc used for?

It is used for writing stuff on it


When writing this year's program is use of the apostrophe correct?

Yes, that is correct. Program belongs to year.


What does writing code mean in programming?

It means typing the actual instructions for a routine or program. This is, writing the program itself, as opposed to other programming tasks like design.


The first part of the rebuilding program was called?

Writing a source code is the first part of the rebuilding a program.


How do you create servlet?

Step 1: Write the servlet.Follow along as we write the ServletSample servlet and give you tips for writing your own servlets.Step 2: Compile the servlet.Use Qshell to compile the sample servlet and your own servlets.Step 3: Package and deploy an applicationUse the WebSphere Development Studio Client to package compiled code into a Web module before you install it on the server and to create a deployment descriptor (web.xml) file. For more information, see the WebSphere Development Studio Client.Step 4:Test the servletRun the ServletSample to make sure it works.