This example demonstrates how to use Freemarker templating engine to produce web pages via Jersey viewable support.
See FreemarkerResource for details on how to use jersey-freemaker module for generating web pages.
If you want to use freemarker in your project, don't forget to set "com.sun.jersey.freemarker.templateBasePath" init param, which will be pointing to base directory where your templates are stored (FreemarkerTest class does that).
Run the example as follows:
mvn clean test
This deploys this example using Grizzly and executes the Jersey Client API using the unit test framework.
You can see test classes at src/main/test
subdirectory
for detailed information how to consume the service using Jersey Client API