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 specified (FileTemplateLoader); then
 - searches the webapp (WebappTmplateLoader); then
 - searches the classpath

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)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to