• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Session support

 
Naresh Gangapur
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one please clarify the below question (HFS Mock Exam)

Which statements about HTTP Session are true?

A. Java EE Containers must support HTTP Cookies
B. Java EE Containers must support URL rewriting
C.Java EE Containers must support SSL
D.Java EE Containers must support HTTP sessions, even for clients that do not support cookies

Answer as mentioned in the book - A, C, D

I thought URL Rewriting is a mandatory for the web container and not SSL. D itself implies B . I thought the answer would be A, B, D Can some please correct
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an error in the book. Checkout the errata. Option B should be
"Java EE Containers may support URL rewriting"
Which makes the option false as a container must support URL rewriting...
 
Naresh Gangapur
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ankit.
 
Lukasz Tymoszczuk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Garg wrote:This is an error in the book. Checkout the errata. Option B should be
"Java EE Containers may support URL rewriting"
Which makes the option false as a container must support URL rewriting...


I can't agree with this. In the errata's link we can find:

Note from the Author or Editor:
The mock exam question 14 on pg 834 is formally correct because the Servlet spec says "URL rewriting may be used by the server". The use of the word "may" means that URL rewriting is not required by the spec.

So if there was the "may" word, the answer would be correct - now with "must" is incorrect.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic