• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cookies, URL rewrting, SSL support

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Which of this are true?


Java EE containers must support HTTP cookies.
Java EE containers must support URL rewriting.
Java EE containers must support the Secure Sockets Layer.

 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maciek please Quote Your Sources...
 
Maciek Mike
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found it in 'Head First Servlets and JSP' Page 834 Question 14
It is one of question from final mock exam.
 
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Maciek.

1. Java EE containers must support HTTP cookies.



This is true. By default HTTP is stateless protocol. Inorder to identifies client who participates in session, Java EE container/server must support cookies.

2. Java EE containers must support URL rewriting.



This is wrong. Not must. It is optional. If the container supports url rewriting, adding 'jsessionid:....' to each urls in the application takes time. If the application includes many pages and many of the urls it takes even much time. Dealing with them slows down the application. I think because of this supporting 'url rewriting' for Java EE containers is optional.

3. Java EE containers must support the Secure Sockets Layer.



This is true. Java EE containers guarantees data integrity/confidentiality. If our 'web.xml' includes
and if we made a request to the constrained resourse, container sees the above element and it redirects to the client, turn on the SSL, which is above the Transport layer. And if the client comes up to the server by turning on the SSL(come up with https protocol), then only login form will be sent to the client. This behaviour is guranteed by Java EE containers.
 
Maciek Mike
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for answer
 
reply
    Bookmark Topic Watch Topic
  • New Topic