Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

an handicapped servlet

 
krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Why an object having declared itself servlet by extending Servlet, don't have that servletness immediately after it's creation and have to wait for container to call it's init() method to get that servletness?

2) If ServletConfig can give you the servletness, what is the need for us to extend Servlet?

3) can we call an object that's not a subclass of Servlet but has a ServletConfig as servlet?
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Why an object having declared itself servlet by extending Servlet, don't have that servletness immediately after it's creation

What exactly do you mean by servletness?? Read this.
3) can we call an object that's not a subclass of Servlet but has a ServletConfig as servlet?

What do you mean by "call an object"??
 
krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by servletness??

Let's leave the idea bout Servletness.
Constructor makes only an Object not Servlet. then what makes servlet? ServletConfig?

What do you mean by "call an object"??

can we say an object that's not a subclass of Servlet but has a ServletConfig as servlet?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This discussion won't go anywhere without a definition of "servlet". It could be defined on a class level, it could be defined on an object level, or it could be defined as an initialized and ready-to-be-invoked object. Once a definition is agreed upon, it should be clear what is and is not a servlet.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic