can servlet have instance variables?

Answer Posted / shekhar

yes

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

554


How to get the path of servlet in the server?

542


How can the session in servlet be destroyed?

648


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

738


Explain the custom jsp tags and the beans.

623






Is it possible to have a constructor inside the servlet?

556


What is servlet initializer?

511


Why the container loads server at the application startup and how?

589


Can we refresh servlet in client and server side automatically?

600


When servlet is loaded?

600


What is the process for chaining servlet?

615


Name the different ways of session tracking.

576


Which is better jsp or servlet?

564


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2931


Why do we have servlet filters?

612