Giver a resource class that has a method witch returns a Viewable (or generaly any jsp page). Is there a way to use the c:import or jsp:include taglib to include a Viewable response from a jaxrs anotatted class? For example given the class
@Path("/some/path")
public class SomeJaxrsResource {
@GET
public Viewable get() {
return new Viewable("/the/path/to/the/jsp", this)
}
}
Is there a way to include it s computed html within a jsp with a
<c:import url="/some/path" />
or a
<jsp:include page="/some/path" />