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 major difference between servlet and applet?

541


How we can get ip address of client in servlet?

541


Explain jsessionid?

619


What do you mean by annotations in servlet?

587


What is servlet container. how it works?

615






Can you send an authentication error from a servlet?

526


How do you design microservices?

625


Whether we can get deadlock situation in servlets?

578


What exactly are the functions of servlet?

601


What are the disadvantages of storing session state in cookies?

630


What is the difference between servlet and jsp?

600


Which httpsession object is used to view and manipulate information about a session?

735


What is called servlet mapping?

558


How can the session in servlet can be destroyed?

712


what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?

571