Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / abc
you can write as like for regular class.
| Is This Answer Correct ? | 10 Yes | 12 No |
Post New Answer View All Answers
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
Explain the architechure of a servlet?
Why do we use sendredirect() method?
Is that servlet is pure java object or not?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Which application server is best for java?
When servlet object is created?
Explain the jar and war files in servlet?
Why servlet is used as controller ? Not JSP? I want complete explation?
What are the functions of an intercepting filter?
Why doesn’t a servlet include main()? How does it work?
How to get the IP address of client in servlet?
Is tomcat a servlet container?