Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Context  RSS feed

 
Mukesh Jaswani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many types of context are there?
 
Ankit Garg
Sheriff
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mukesh, can you explain your question a bit clearly. There's a ServletContext class which represents the context in which a web application runs. What other contexts are you expecting??
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The term context can be applied to many things.
 
Mukesh Jaswani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one Java/J2EE interview,I have been asked how many types of context are there?...
I know Servlate Context (application context), but i don't knwo how to respond this
 
Ankit Garg
Sheriff
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is only one context if you consider the word in a class name. There used to be a SessionContext which is now deprecated. So the simple answer to the question would be "there's one context, that's servlet context". To be frank the question doesn't make much sense to me. On first glance it looked to me about attribute scopes (which are context, session, request and page (only JSPs))...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!