Titlewiki:include and wiki:content only look in the default template dir.
Date25-Jan-2005 04:13:21 EET
Version2.1.134
Submitter192.18.43.5
Bug criticalityBadBug
Browser versionMozilla 1.7.2
Bug statusClosedBug
PageProvider usedVersioningFileProvider
Servlet ContainerTomcat 4.1.24
Operating SystemSolaris
URLnone
Java version1.4.2_06
DuplicatesBugIncludeTagUsesDefaultTagOnly

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.

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-2) was last changed on 25-Jan-2005 14:18 by Administrator