aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Cookies, URL rewrting, SSL support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Cookies, URL rewrting, SSL support" Watch "Cookies, URL rewrting, SSL support" New topic
Author

Cookies, URL rewrting, SSL support

Maciek Mike
Greenhorn

Joined: Feb 03, 2010
Posts: 22
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.


SCJP 5.0 (94%), SCJD (388/400), SCWCD (97%)
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9321
    
  17

Maciek please Quote Your Sources...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Maciek Mike
Greenhorn

Joined: Feb 03, 2010
Posts: 22
I found it in 'Head First Servlets and JSP' Page 834 Question 14
It is one of question from final mock exam.
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
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

Joined: Feb 03, 2010
Posts: 22
Thanks for answer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookies, URL rewrting, SSL support