Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 19074 invoked from network); 27 Jul 2008 09:18:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jul 2008 09:18:36 -0000 Received: (qmail 86762 invoked by uid 500); 27 Jul 2008 09:18:35 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 86733 invoked by uid 500); 27 Jul 2008 09:18:35 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 86722 invoked by uid 99); 27 Jul 2008 09:18:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jul 2008 02:18:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HS_INDEX_PARAM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.husted@gmail.com designates 209.85.200.168 as permitted sender) Received: from [209.85.200.168] (HELO wf-out-1314.google.com) (209.85.200.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jul 2008 09:17:40 +0000 Received: by wf-out-1314.google.com with SMTP id 26so3298270wfd.26 for ; Sun, 27 Jul 2008 02:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=ZHXmfh0xqZ7zwWMxnU3/0GWOB0Tw+WLOm5HfbH8cV6M=; b=O02Eypg2ExwAhPVoWvmkWyU2MjvaI3OsSA7iWljKAEQIjhjlUrFfO+jdoP27gfx3QT +uWB58Rhud9GU3CNTyTZaaOEo0o5zBHXQd1cNoCNarYaiPZjwiHti5yfQWCEGXlef9rs ZNBIAI8joa9pXhq2QEJdKHE0PhWAIrXXu73J8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=VL3detbpkE3lrw8sGX79QEtDFI9JXZYkQ8CHgvGRqh4uZTIbSJNjWdW9jp5OpA5t5Q ZYAavr76HvneR9rBkMeazjkLFaPHjNbKbUQXlwHubBT2A1XujvUf/l4lfj6LqFVcx5le m6UdJ63V1SbKiua/t15pW7hPQowbbhGzMvhEE= Received: by 10.142.222.21 with SMTP id u21mr1166333wfg.244.1217150286355; Sun, 27 Jul 2008 02:18:06 -0700 (PDT) Received: by 10.143.13.14 with HTTP; Sun, 27 Jul 2008 02:18:06 -0700 (PDT) Message-ID: <8b3ce3790807270218n552caf98x12418c0b27b0a669@mail.gmail.com> Date: Sun, 27 Jul 2008 05:18:06 -0400 From: "Ted Husted" Sender: ted.husted@gmail.com To: "Struts Developers List" Subject: Re: [s2] Google XML Pages (GXP) to replace Freemarker in tags? In-Reply-To: <976298.59052.qm@web56705.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200807261952.58733.lists@pierosartini.de> <976298.59052.qm@web56705.mail.re3.yahoo.com> X-Google-Sender-Auth: 3ae55ea2a4f3ccfe X-Virus-Checked: Checked by ClamAV on apache.org Yes, for anyone unfamilar with how the "Struts Tags" are implemented, the content of all three flavors of tags -- JSP, Velocity, and Freemarker -- are, way down deep, generated from the same set of templates. The content generated by the template is then wrapped as a JSP tag, Velocity macro, or Freemarker tag. For example, here's the gritty guts of our "a" tag: <#if parameters.id?if_exists != ""> id="${parameters.id?html}"<#rt/> <#if parameters.href?if_exists != ""> href="${parameters.href}"<#rt/> <#if parameters.tabindex?exists> tabindex="${parameters.tabindex?html}"<#rt/> <#if parameters.cssClass?exists> class="${parameters.cssClass?html}"<#rt/> <#if parameters.cssStyle?exists> style="${parameters.cssStyle?html}"<#rt/> <#if parameters.title?exists> title="${parameters.title?html}"<#rt/> <#include "/${parameters.templateDir}/simple/scripting-events.ftl" /> <#include "/${parameters.templateDir}/simple/common-attributes.ftl" /> <#include "/${parameters.templateDir}/simple/dynamic-attributes.ftl" /> > * http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/a.ftl?revision=590812&view=markup Note that the block starts with "". Everything else in the block generates dynamic content that might go between "". The proposal would use GXP to generate the same content as we do here, so we can wrap the output as a JSP, Velocity, or Freemarker "tag". HTH, Ted. http://husted.com/ted/blog/ On Sat, Jul 26, 2008 at 3:39 PM, Dave Newton wrote: > --- On Sat, 7/26/08, Piero Sartini wrote: >> Since there is no support for JSP tags in GXP, how could >> the struts2 tags be accessed in such an result? > > Er, I think the idea was to use GXP instead of FreeMarker for the S2 tags. > > Dave --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org