Hi Franz,
It is not currently supported by Jersey.
If you need to pass some state it might be possible to reuse Viewable
and write your own ViewProcessor.
See the code in JSPTemplateProcessor, from which you can copy:
http://fisheye4.atlassian.com/browse/jersey/trunk/jersey/jersey-server/src/main/java/com/sun/jersey/server/impl/container/servlet/JSPTemplateProcessor.java?r=HEAD
Alternatively it should be possible to write your own Forward class
and MessageBodyWriter to process it which performs a forward using a
RequestDispatcher.
Paul.
On Jul 29, 2010, at 5:55 AM, Franz Wong wrote:
> Hi group,
>
> I have a restful service and I would like to forward it to a
> Servlet. For plain JSP, I know I can return a Viewable. How about
> Servlet?
>
> (Actually what I really want to do is forwarding the service to a
> "Struts taglib" used JSP.)
>
> Thanks,
> Franz