Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6EEA1178C for ; Thu, 10 Jul 2014 05:12:05 +0000 (UTC) Received: (qmail 55061 invoked by uid 500); 10 Jul 2014 05:12:05 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 55022 invoked by uid 500); 10 Jul 2014 05:12:05 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 55011 invoked by uid 99); 10 Jul 2014 05:12:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2014 05:12:05 +0000 Date: Thu, 10 Jul 2014 05:12:05 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-3764) Reading(theme.properties)PropertyFileFromFileSystem doesn't include templatePath value from web.xml MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-3764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14057136#comment-14057136 ] Lukasz Lenart commented on WW-3764: ----------------------------------- Your deleted comment was valid - let me think about that, I must check few things - it isn't about specifying the exact path but rather a prefix {{/WEB-INF}} > Reading(theme.properties)PropertyFileFromFileSystem doesn't include templatePath value from web.xml > --------------------------------------------------------------------------------------------------- > > Key: WW-3764 > URL: https://issues.apache.org/jira/browse/WW-3764 > Project: Struts 2 > Issue Type: Improvement > Affects Versions: 2.3.1 > Environment: Tomcat v7.0 > Reporter: Vijayakannan > Assignee: Lukasz Lenart > Labels: theme.properties-loading-from-filesystem > Fix For: 2.3.18 > > Attachments: struts2-blank.war > > Original Estimate: 24h > Remaining Estimate: 24h > > There is an option in Struts2 to load the freemarker template from path by setting in web.xml (templatePath).Templates are loaded from the file system if we configure the file path. > Also there is an option to extend the themes by setting the value for "parent" key in the themes.properties within the template folder > readProperty() method helps us to read the themes.properties file from the file system and also from the classpath > Aruguments :- > Combination of template directory ,template and file name "theme.properties" are passed as propName > This method doesn't help us to load the theme.properties from the specified templatePath > {code:java} > private InputStream readProperty(String propName) { > InputStream is = tryReadingPropertyFileFromFileSystem(propName); > if (is == null) { > is = readPropertyFromClasspath(propName); > } > return is; > } > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)