The webapp (Struts) CL is *supposed to reference the resources from the jar
loaded by the webapp first* ..can you confirm
templateDir=template
theme=KUThemeI noticed com.opensymphony.xwork2.util.URLUtil TestCase references
all resources relatively located off a jar with a trailing bang so as to be
able to construct a valid URL e.g.
public void testIsJarURL() throws Exception {
assertTrue(URLUtil.isJarURL(new
URL("jar:file:/c:/somelibrary.jar!/com/opensymphony")));
assertTrue(URLUtil.isJarURL(new
URL("zip:/c:/somelibrary.jar!/com/opensymphony")));
assertTrue(URLUtil.isJarURL(new
URL("wsjar:/c:/somelibrary.jar!/com/opensymphony")));
assertTrue(URLUtil.isJarURL(new
URL("vfsfile:/c:/somelibrary.jar!/com/opensymphony")));
assertTrue(URLUtil.isJarURL(new
URL("vfszip:/c:/somelibrary.jar/com/opensymphony")));
}
which container are you using WL, JBoss, TC, WS, Jetty..?
thanks,
Martin
______________________________________________
> Date: Tue, 16 Jul 2013 06:11:21 -0700
> From: [email protected]
> To: [email protected]
> Subject: Re: Creating Your Own Struts 2 Theme No Longer Works?
>
> Thank you for looking at this issue.
>
> I removed the theme attribute from the form tag. But when I add the theme
> attribute to the s:checkboxList tag I now get this error:
>
>
> Error reading included file template/KUTheme/controlheader.ftl
> The problematic instruction:
> ----------
> ==> include
> "/${parameters.templateDir}/${parameters.theme}/controlheader.ftl" [on line
> 1, column 1 in template/KUTheme/checkboxlist.ftl]
> ----------
>
> So it appears that since the checkboxlist.ftl has include statements to
> other .ftl files the path to the other .ftl files is no longer referencing
> the .ftl files in the struts2 core jar.
>
> Is this related to your other post on themes? I know that this used to work
> in an earlier version of Struts 2.
>
> Bruce
>
>
>
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/Creating-Your-Own-Struts-2-Theme-No-Longer-Works-tp5713191p5713215.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>