From the course: Java EE 8: JavaServer Faces JSF 2.3

HTTP/2 Servlet 4.0 in JSF 2.3

From the course: Java EE 8: JavaServer Faces JSF 2.3

Start my 1-month free trial

HTTP/2 Servlet 4.0 in JSF 2.3

- [Instructor] Servlet 4.0 is the latest incarnation of the Servlet specification. If you didn't know, all of JSF is based on Servlet technology. In fact, the JSF Servlet is the single most important piece of this whole enchilada, because it's the one way in and out of a JSF app. That brings me to HTTP/2. It's a faster, simpler, and more powerful upgrade to the HTTP/1.1 we all know and love, based, in part, on work done by some company out in California. I think it's called Google? I hope I pronounced it properly. Without getting too much into the weeds of how HTTP/2 works, and why you should want it, suffice it to say you should want it. And Servlet 4.0 supports HTTP/2. All we've had to do so far is upgrade our web.xml, as you've done here on line 2, in support of Servlet 4, and as a result, HTTP/2. And that's it. It gracefully degrades to the older version of HTTP if any part of your kit doesn't support HTTP/2. So sit back, relax, and have your application glide on the wings of this improved version of HTTP.

Contents