TitleWiki Tag For Current Template Absolute Path
Date01-Sep-2005 19:51:50 EEST
JSPWiki version
Idea CategoryTemplateIdea
Idea StatusNewIdea

Refactored from Ideas page:

Add a wiki tag to get the current template absolute path#

This is useful when you define a custom template, for example to simply get the absolute path to template files (such as images)

package com.ecyrd.jspwiki.tags;

public class TemplatePathTag extends WikiTagBase {

    public final int doWikiStartTag() throws IOException {
        String templatePath = m_wikiContext.getHttpRequest().getContextPath() + "/templates/" + m_wikiContext.getTemplate();
        return SKIP_BODY;

-- Mar 24, 2005 -- LaurentMorin

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 22-Jun-2006 09:34 by Olaf Kock