Hello everyone,
I am starting with the framework jersey and I have a little problem with the
explicit MVC. To use facelets (. xhtml), I had to go through a jsp in which
I forward to the JSF. So my question is: « is there another alternative to
do so without having to go through the jsp » ie instead of returning « new
Viewable (" index.jsp ", entity);» we return directly «new Viewable ("
index.jsf ", entity)».
the code is as follows :
// resource
....
@GET
@Produces(MediaType.TEXT_HTML)
public Viewable get() {
EntityManager em =
PersistenceService.getInstance().getEntityManager();
Collection<UbikeUser> users = (Collection<UbikeUser>)
em.createNamedQuery(
"user.getAll").getResultList();
return new Viewable("/usersInfo.jsp", users);
}
....
// JSP
....
<jsp:forward page="usersInfo.jsf"/>
....
Thank you for your help.
--
View this message in context: http://n2.nabble.com/Jersey-explicit-MVC-tp2732209p2732209.html
Sent from the Jersey mailing list archive at Nabble.com.