How to return actual html file using JAX-RS

Viewed 28700

so far, I'm returning html my home page by:

@GET
@Produces({MediaType.TEXT_HTML})
public String viewHome()
{
   return "<html>...</html>";
}

what I want to do is return home.html itself and not copying its contents and returning the string instead.

How do I do this? thanks :)

4 Answers
Related