Frans Thamura wrote:
It looks like the templatePath init param is used only by the
FileTemplateLoader though. (I've never needed to use that param)
The classpath loader uses
Thread.currentThread().getContextClassLoader().getResource(resourceName);
(and a few other variations if unsuccessful)
>
> It looks like the templatePath init param is used only by the
> FileTemplateLoader though. (I've never needed to use that param)
>
> The classpath loader uses
> Thread.currentThread().getContextClassLoader().getResource(resourceName);
> (and a few other variations if unsuccessful)
>
i am try t
Frans Thamura wrote:
do this mean that struts2 automatically search template, when the template
is not in the /web-inf/view , the struts2 will search in the classpath. is
this right?
Yes.
Struts 2 configures a FreeMarker TemplateLoader that:
- searches the filesytem templatePath if specif
On Mon, Mar 3, 2008 at 8:34 AM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:
> The Struts FreemarkerResult and Struts 2 tags explicitly access a
> Freemarker template engine that's setup via the Struts container.
>
> Your example below references the FreemarkerServlet provided by
> Freemarker that's a
The Struts FreemarkerResult and Struts 2 tags explicitly access a
Freemarker template engine that's setup via the Struts container.
Your example below references the FreemarkerServlet provided by
Freemarker that's an distinct instance of the template engine.
You don't require the FreemarkerSer
>
> Resolved/Fixed is good/stable. It's also dated 2004 so it's safe to
> assume it doesn't apply any more.
> I had a look in FreemarkerManager.java and confirmed the templatePath is
> read from servletContext.getInitParameter("TemplatePath") or
> "templatePath"
>
> thx
working in this :)
hope c
Frans Thamura wrote:
Jeromy,
i got this
https://issues.apache.org/struts/browse/WW-676
is resolved issue = stable?
Frans
Resolved/Fixed is good/stable. It's also dated 2004 so it's safe to
assume it doesn't apply any more.
I had a look in FreemarkerManager.java and confirmed the templ
hi jeromy,
i have several velocity template inside and i want to put in the jar also
i got this is the syntax to implement TemplatePath (below)
i dont get the relationship between freemarker and struts
because in my strutx.xml's package i just change the result to freemarker,
and done, the
Jeromy,
i got this
https://issues.apache.org/struts/browse/WW-676
is resolved issue = stable?
Frans
Frans Thamura wrote:
we use velocity and freemarker :)
is it possible?
Good choice. You're in luck! The Freemarker Configuration searches for
templates in your web application first and then in your classpath.
Just place them in the jar and reference them by their classpath.
eg
/views/m
>
> Is the template a JSP? If so, you're stuck. In the current container
> spec, they must be included in the WAR, not in a JAR.
>
> This is a critical flaw of JSPs and one of the many reasons some
> developers prefer velocity or freemarker pages.
>
> To partially overcome the problem, use your b
Frans Thamura wrote:
how to call the template inside a jar in struts development. so I can put
all the code in one jar, and can be use in another project, and we still
know, the template inside the jar.
Is the template a JSP? If so, you're stuck. In the current container
spec, they must
hi all,
i need all your idea.
i have 2 project that using struts, the project name is cimande and papaje.
this is the scenario
cimande is the core, and papaje need cimande to run,
cimande need struts2, spring, and hibernate
both spring and hibernate both no problem, i have
applicationContext-
13 matches
Mail list logo