users@jersey.java.net

Mixing templates with JAXB

From: Alex Vollmer <alex.vollmer_at_gmail.com>
Date: Thu, 5 Mar 2009 10:29:10 -0800

Is there a way to mix the default JAXB XML output with the
Viewable templating stuff based on content negotiation? What I want is
to define a resource method that returns a JAXB-annotated model object. If
the the request is for XML, return XML. If it's for html then defer to the
JSP template.

Any help would be appreciated.

--Alex

-- 
Musings and notes -- http://alexvollmer.com