You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Matt Raible <ma...@raibledesigns.com> on 2008/04/08 22:48:37 UTC
Does Struts 2 support loading FreeMarker templates from a remote server?
According to the following page, Struts 2 supports loading FreeMarker
templates from the webapp or classpath:
http://struts.apache.org/2.x/docs/freemarker.html
However, it doesn't appear to support loading them from a remote
server (i.e. http://localhost/freemarker). Is this a limitation of
Struts 2's FreeMarker support?
Thanks,
Matt
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Does Struts 2 support loading FreeMarker templates from a remote server?
Posted by Musachy Barroso <mu...@gmail.com>.
I think you would have to add a template loader
FreemarkerManager:getTemplateLoader
musachy
On Tue, Apr 8, 2008 at 11:14 PM, mraible <ma...@raibledesigns.com> wrote:
>
> I'll take that as a "no". FWIW, Spring MVC supports this - allowing you to
> use its underlying Resources API to load from a remote server via http, ftp,
> etc. It also supports loading from a remote JAR, which is pretty cool IMO.
>
> How hard would it be to add this functionality to Struts 2?
>
> Matt
>
>
>
>
> mraible wrote:
> >
> > According to the following page, Struts 2 supports loading FreeMarker
> > templates from the webapp or classpath:
> >
> > http://struts.apache.org/2.x/docs/freemarker.html
> >
> > However, it doesn't appear to support loading them from a remote
> > server (i.e. http://localhost/freemarker). Is this a limitation of
> > Struts 2's FreeMarker support?
> >
> > Thanks,
> >
> > Matt
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Does-Struts-2-support-loading-FreeMarker-templates-from-a-remote-server--tp16573018p16576056.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: Does Struts 2 support loading FreeMarker templates from a
remote server?
Posted by mraible <ma...@raibledesigns.com>.
I'll take that as a "no". FWIW, Spring MVC supports this - allowing you to
use its underlying Resources API to load from a remote server via http, ftp,
etc. It also supports loading from a remote JAR, which is pretty cool IMO.
How hard would it be to add this functionality to Struts 2?
Matt
mraible wrote:
>
> According to the following page, Struts 2 supports loading FreeMarker
> templates from the webapp or classpath:
>
> http://struts.apache.org/2.x/docs/freemarker.html
>
> However, it doesn't appear to support loading them from a remote
> server (i.e. http://localhost/freemarker). Is this a limitation of
> Struts 2's FreeMarker support?
>
> Thanks,
>
> Matt
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Does-Struts-2-support-loading-FreeMarker-templates-from-a-remote-server--tp16573018p16576056.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org