users@jersey.java.net

[Jersey] Re: Customize Resolve in JSP Template Processor

From: Tony Zakula <tonyzakula_at_gmail.com>
Date: Fri, 9 Jan 2015 21:55:24 -0600

Thank you Michal. I just wanted to be sure I was not missing anything. I
am implementing a Nashorn/JS parser and was going to offer both JSP and JS,
but I will just do everything in my custom TemplateProcessor. I imagine
most people use just one.

On Thu, Jan 8, 2015 at 9:06 AM, Michal Gajdos <michal.gajdos_at_oracle.com>
wrote:

> Hi Tony,
>
> unfortunately no, there is no way how to achieve this at the moment.
> Please, file an issue to our JIRA [1] we should be able to provide some
> prioritization of template processors at least.
>
> [1] https://java.net/jira/browse/JERSEY
>
> Michal
>
> > On 27 Dec, 2014, at 01:37 , Tony Zakula <tonyzakula_at_gmail.com> wrote:
> >
> > Hey All,
> >
> > I created a custom TemplateProcessor and now I was wondering if there
> was anyway to customize the JspTemplateProcessor resolve method to return
> null or not based on the media type. Basically, we decide between stock
> templates and customized templates in different locations at run time. Or
> is there any other way to do this?
> >
> > Thanks,
> >
> > Tony
>
>