Beiträge getagged mit templating
Developing lightweight Java web applications – Part 5: Templating with Facelets
Verfasst von Hendrik Busch unter Entwicklung am 8. August 2008
Turning the app into a webapp
After creating a small persistence layer for our JPokerStats application, it is now time to finally create a web application out of our sources. If you already have the source files from the previous parts, you may have noticed the src/main/webapp directory that was created by the Maven archetype plugin. Let’s start here.
Getting the sources
As always, you can either go the project website or checkout the associated tag from the source control system:
svn checkout http://jpokerstats.googlecode.com/svn/tags/tutorial_part_05
Integrating Faces and Facelets
A web.xml is already present, and for a JSF application we will need to declare the JSF servlet here. We will also add some additional configuration options for debugging purposes and will map all requests to the /faces/ context to the servlet. This results in the following basic web.xml:









