| Title | wiki:include and wiki:content only look in the default template dir. |
| Date | 25-Jan-2005 04:13:21 EET |
| Version | 2.1.134 |
| Submitter | 192.18.43.5 |
| Bug criticality | BadBug |
| Browser version | Mozilla 1.7.2 |
| Bug status | ClosedBug |
| PageProvider used | VersioningFileProvider |
| Servlet Container | Tomcat 4.1.24 |
| Operating System | Solaris |
| URL | none |
| Java version | 1.4.2_06 |
| Duplicates | BugIncludeTagUsesDefaultTagOnly |
I was trying to use the "redman" template I found with JSPWiki 2.1.134 but noticed that I had to modify some JSP files in the "default" directory to get new behavior even though I changed the template with the templateDir jspwiki.properties property.
As I started looking at the problem, I narrowed it down to something that the wiki:Include tag was doing. When I looked at the source for the Include tag, I noticed that its making a call to findJSP(context, page). The code for findJSP(context, page) however is hard coded to use the default template dir.
Poking around the source a little more I noticed a second findJSP method; findJSP(context, template, page). This version _does_ try to look in the specified template dir before falling back to the default. However, when I tried modifying the Include tag code, I couldn't get this to work.
---
This is fixed in 2.1.136.