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

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

RESTful URL support in JSF 2.3

RESTful URL support in JSF 2.3

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

Start my 1-month free trial

RESTful URL support in JSF 2.3

- [Narrator] The quintessential JSF URL, containing either faces or ending in .xhtml or .jsf. Everything just screams JSF, doesn't it? What if there were a way to make this more visually appealing, and even more importantly, more machine-friendly? It certainly helps to improve search engine indexing when you have more concise extension-less URLs. In this video, I'll show you how to configure your JSF application to emit cleaner URLs for specific pages. In the Web.xml, under the URL mapping section of the faces servlet on lines 24 and 25, I've already added the two most commonly used JSF extension mappings; .jsf and .xhtml. New with JSF 2.3, however, I can now add a third kind of mapping. So, I'm going to come over here, reuse some of this marker. On a new line, on line 26, let's have, say, socket-receiver, say that. With the new mapping that I've configured here on line 26, I should be able to request the socket…

Contents