views:

263

answers:

2

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" />
A: 

After some searching, I can say that this is not yet possible!

valotas
A: 

Since Jersey 1.3 works, at least with URLs under management of Jersey. This was listed as fixed in the changelog

A quick test revealed that it also works with external URLs and URLS in the same servlet context but not under management of Jersey.

polarisation