• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet Context

 
pravanya Gullapudi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ServletContext interface is used by container to send configuration data to servlet.
what configuration data it sends?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you may be confusing ServletContext with ServletConfig.

For info on either class, reference the Javadoc API.
 
pravanya Gullapudi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for the above post

ServletConfig is used to send configuration data to servlet.

what configuration data the server sends to servlet
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:

For info on either class, reference the Javadoc API.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here, I even looked it up for you.
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What ever the <init-param> values you put in the web.xml( When the container initializes a servlet, it makes SevletConfig. The container reads the servlet init parameters from the deploymenet Descriptor and gives them to the servletconfigm, it passes it to the init()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!