serving static content from a resource

From: Arul Dhesiaseelan <>
Date: Thu, 11 Feb 2010 11:54:31 -0700


Is it possible to serve static content from a resource?

I would like to render HTML from a resource method using explicit MVC, something like:

public class RootResource {

  public Viewable getHomePage() {
    return new Viewable("/home.html", null);

Would this work?

Thank you,