Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 61232 invoked from network); 3 Apr 2007 13:00:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2007 13:00:45 -0000 Received: (qmail 69357 invoked by uid 500); 3 Apr 2007 13:00:39 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 69330 invoked by uid 500); 3 Apr 2007 13:00:38 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 69319 invoked by uid 99); 3 Apr 2007 13:00:38 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [216.193.217.213] (HELO meteor.lunarpages.com) (216.193.217.213) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 06:00:35 -0700 Received: from c-24-63-210-217.hsd1.ma.comcast.net ([24.63.210.217] helo=[127.0.0.1]) by meteor.lunarpages.com with esmtpa (Exim 4.52) id 1HYibz-0004lT-NF for user@struts.apache.org; Tue, 03 Apr 2007 05:59:47 -0700 Message-ID: <46124FC6.9020804@fdar.com> Date: Tue, 03 Apr 2007 08:59:50 -0400 From: Ian Roughley User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: [S2] Problems extending a theme References: <138BB642-635E-46AB-9433-5445B1D177C8@fifeventures.co.uk> <221F8D0F-A6C1-413A-AC4C-53E34BE74E31@fifeventures.co.uk> In-Reply-To: <221F8D0F-A6C1-413A-AC4C-53E34BE74E31@fifeventures.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - meteor.lunarpages.com X-AntiAbuse: Original Domain - struts.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - fdar.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Is the template directory (from "/template/galleryadmin/actionerror.ftl") at the root of the web applications content files? /Ian paul.edmondson@fifeventures.co.uk wrote: > Hello again, > > After a day of still getting nowhere in trying to extend a template > and having no response from the list. Should I add this as a bug in > Jira? > > > Thanks, > > > Paul. > > > On 2 Apr 2007, at 12:37, paul.edmondson@fifeventures.co.uk wrote: > >> Hello all, >> >> I'm having problems extending a default theme with Struts 2.0.6. I >> am in the process of creating my own theme and have added templates >> for various tree-*.ftl files. >> >> I've tried adding a theme.properties file with: >> parent = ajax >> >> However on ever page that I try and use any of the struts tags I get >> errors like: >> >> Apr 2 12:10:12 192.168.10.13 12: 10:12 ERROR >> FreemarkerTemplateEngine () - Could not load template >> /template/galleryadmin/actionerror >> Apr 2 12:10:12 192.168.10.13 12: 10:12 ERROR UIBean >> () - error when rendering >> Apr 2 12:10:12 192.168.10.13 java.io.FileNotFoundException: Template >> /template/galleryadmin/actionerror.ftl not found. >> Apr 2 12:10:12 192.168.10.13 at >> freemarker.template.Configuration.getTemplate(Configuration.java: 489) >> Apr 2 12:10:12 192.168.10.13 at >> freemarker.template.Configuration.getTemplate(Configuration.java: 452) >> ... >> >> I read in the extending themes guide that adding a theme.properties >> file is all I need to do to only implement the templates that I >> change. Am I missing something simple? >> >> Extra information: >> - I'm setting the theme name in my action class. >> - When setting the theme name to any of the supplied themes with >> Struts 2 e.g(ajax or xhtml), everything works as expected. >> >> Thanks for any help, >> >> >> Paul. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org