Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 83696 invoked from network); 28 Mar 2008 08:24:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2008 08:24:50 -0000 Received: (qmail 88140 invoked by uid 500); 28 Mar 2008 08:24:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 88097 invoked by uid 500); 28 Mar 2008 08:24:37 -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 87808 invoked by uid 99); 28 Mar 2008 08:24:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2008 01:24:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [85.214.48.37] (HELO h1114159.serverkompetenz.net) (85.214.48.37) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Mar 2008 08:23:56 +0000 Received: from [192.168.155.87] (cus-100-028.de.clara.net [213.221.100.28]) by h1114159.serverkompetenz.net (Postfix) with ESMTP id 2E30B2A180FB for ; Fri, 28 Mar 2008 09:24:05 +0100 (CET) Message-ID: <47ECAB2A.4070601@e-beyond.de> Date: Fri, 28 Mar 2008 09:24:10 +0100 From: me User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: S2/Sitemesh: How to set the title in a freemarker template? References: <47EC9ACC.6020804@e-beyond.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, hmmm... do you mean that I should create a template for each site which has another title? I think that would be too much. I've got several pages which should get a title based on information located in a database. I thought that there will be a property in the action i have to set or can I access the value-stack from the sitemesh-freemarker template? Marc stanlick@gmail.com schrieb: > Hey Marc -- > > copy that FreeMarker template into your /template folder and modify > it with your desired changes. Struts 2 will grab yours for rendering. > > > On Fri, Mar 28, 2008 at 2:14 AM, me wrote: > > >> Hi, >> >> I'm running struts2 with sitemesh. There is a freemarker template >> defined in the decorators and this template >> has both variables $title and $body. The body is filled autmatically >> which is okay. But I want to set the title >> from the action I've called because I wanted to have the content and the >> title having a relation to each other >> (which makes sense, I believe... :) ) >> >> Thanks for your help. >> >> Marc >> >> --------------------------------------------------------------------- >> 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