users@jersey.java.net

Using JSP for HTML representation

From: Daniel Larsson <daniel.j.larsson_at_gmail.com>
Date: Sat, 23 Aug 2008 03:25:44 +0200

Hi,
The bookstore example shows how to use JSP pages for resources. How does
jersey decide to use this page when returning the response? I'm returning an
instance of a @XmlRootElement annotated class, and there's a provider in the
jersey library that has a "*/*" producer, so I'm getting an XML document in
response when doing a GET with Accept: text/html.

Is there a way to have my application return the JSP generated page instead?