• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding a mock question in HFSJ

 
Santhi Bharath
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
in HFSJ 2nd edition

page number 219 and Q no. 10 explanation.

the comment for option E is "option E is invalid because there is no such type" .

but the interface HttpSessionContext is there in javax.servlet.http package
 
Matthias De Scheerder
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you could type the question? It's possible that people that can help you don't have the book at hand.
 
Santhi Bharath
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok,

this is the question from HFSJ from attributes and listeners chapter

10. which type of objects can store attributes.? (Choose all that apply.)

a)ServletConfig
b)ServletResponse
c)RequestDispatcher
d)HttpServletRequest
e)HttpSessionContext

i know answer is d. but they commented for e option as "option E is invalid because there is no such type".but there is an interface HttpSessionContext in javax.servlet.http package
 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the API also says that its deprecated which means consider it doesn't exist or will not exist
 
Santhi Bharath
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry guys for my post as it merely a misgiving.ya,now i observed the API and i comprehended that after Servlet spec 2.1 it is deprecated
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic