can v create a constructor 4 servlet?

Answer Posted / rajesh r

Yes we can obiviously create a contructor for SERVLETS

But it is toooo early to play with request or reponse
objects or any information regarding Context or Config
since these are not at all created if you put these in
constuctors..

Regards
Rajesh R
Rajeshr1988@gmail.com

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between servlet and jsp?

593


Are Servlets Thread Safe? How to achieve thread safety in servlets?

554


How can you create a session in servlet?

587


Explain the war file?

606


List out difference between a JavaBean from a Servlet?

562






How to get the path of servlet in the server?

531


What are the life cycle methods of the servlet?

574


How can a servlet be used to generate plain text instead of html?

539


Which interface should be implemented by all servlets?

694


How can we create deadlock situation in servlet?

830


What is the difference between Difference between doGet() and doPost()?

754


What is a deployment descriptor?

593


How do you run a servlet?

537


What is the servlet?

614


What is servlet mapping?

591