Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 91555 invoked from network); 3 Oct 2007 21:47:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 21:47:58 -0000 Received: (qmail 24628 invoked by uid 500); 3 Oct 2007 21:47:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 24594 invoked by uid 500); 3 Oct 2007 21:47: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 24583 invoked by uid 99); 3 Oct 2007 21:47:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 14:47:37 -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 [132.205.96.94] (HELO perseverance.services.encs.concordia.ca) (132.205.96.94) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 21:47:38 +0000 Received: from cacao.encs.concordia.ca (emilu@cacao.encs.concordia.ca [132.205.47.225]) by perseverance.services.encs.concordia.ca (envelope-from emilu@encs.concordia.ca) (8.13.7/8.13.7) with ESMTP id l93LIxmq013812 for ; Wed, 3 Oct 2007 17:18:59 -0400 Message-ID: <47040743.10500@encs.concordia.ca> Date: Wed, 03 Oct 2007 17:18:59 -0400 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Thunderbird 2.0.0.6 (X11/20070728) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Tiles 2 setup with Struts2 References: <4702AA2A.7050505@encs.concordia.ca> <4702B936.4000804@supsi.ch> <4703D8AB.5050905@encs.concordia.ca> <4704006E.4070408@supsi.ch> In-Reply-To: <4704006E.4070408@supsi.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on perseverance.encs.concordia.ca at 2007/10/03 17:18:59 EDT X-Virus-Checked: Checked by ClamAV on apache.org > here's the example: > > > ... > > > see? it's enough that your packages extend tiles-default. It works as well! That's nice! Thank you Robi. I did: =========================== [1] deleted from struts.xml [2] updated struts.xml: from to ******************** I hope "tiles-default" supports/extends all default struts2 setup, right? I mean, if package extends "tiles-default", all struts2 properties such as Menu /Success.jsp /Logon.jsp /Logon.jsp and other parameters will still work. Cheers! > > Emi Lu wrote: >> Thank you very much ! >> >> It works! >> >> >> Following Your comments, I did: >> >>>> ============= >>>> >>>> org.apache.struts >>>> struts2-tiles-plugin >>>> ${version.tiles} >>>> compile >>>> >>>> >>>> to web.xml >>> >>> the above looks like maven stuff.. shouldn't be in web.xml >> >> Deleted from web.xml >> >> >>>> [2] >>>> >>> class="org.apache.struts2.views.tiles.TilesResult"/> >>>> >>>> >>>> to the struts.xml file's package section >>> >>> you could also extends tiles definition instead >> >> May I get an example? Is it for java action class extends tiles or >> web.xml file update, would you tell me how? >> >> For now, I did not change this section. >> >> >>>> [3] >>>> >>>> TileHelloWorld >>>> >>>> >>>> to the struts.xml file >>> >>> ok >> >> no change. >> >> >>>> [4] >>>> >>>> >>>> >>>> to tiles-defs.xml (this file is saved under /WEB-INF/) >>>> >>>> For struts2, where and how to notify the system to load the >>>> titles-defs.xml? I suppose that the system will find this file >>>> auto-matically? >>> >>> that should be in WEB-INF/tiles.xml and not tiles-defs.xml >>> unless you include it.. >> >> rename to tile.xml; now the file is loaded auto-matically :) >> >> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org