Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 31255 invoked from network); 2 Oct 2007 21:35:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2007 21:35:54 -0000 Received: (qmail 84936 invoked by uid 500); 2 Oct 2007 21:35:29 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 84907 invoked by uid 500); 2 Oct 2007 21:35:29 -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 84892 invoked by uid 99); 2 Oct 2007 21:35:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 14:35:29 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [62.48.103.172] (HELO jupiter.nunnisoft.ch) (62.48.103.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 21:35:31 +0000 Received: from [127.0.0.1] (venus.noonlights.net [192.168.1.6]) by jupiter.nunnisoft.ch (8.13.6/8.13.6) with ESMTP id l92LXpmL078506 for ; Tue, 2 Oct 2007 23:33:51 +0200 (CEST) (envelope-from roberto.nunnari@supsi.ch) Message-ID: <4702B943.7040708@supsi.ch> Date: Tue, 02 Oct 2007 23:33:55 +0200 From: Roberto Nunnari User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Tiles 2 setup with Struts2 References: <4702AA2A.7050505@encs.concordia.ca> In-Reply-To: <4702AA2A.7050505@encs.concordia.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000778-1, 02.10.2007), Outbound message X-Antivirus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on jupiter.nunnisoft.ch X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.2.3 Hello Emi. see below my comments. Emi Lu wrote: > Hello, > > I looked at this page: > > http://struts.apache.org/2.x/docs/tiles-plugin.html > > Done: > ============= > [1] Added > > > org.apache.struts > struts2-tiles-plugin > ${version.tiles} > compile > > > to web.xml the above looks like maven stuff.. shouldn't be in web.xml > > > [2] Added > > > class="org.apache.struts2.views.tiles.TilesResult"/> > > > to the struts.xml file's package section you could also extends tiles definition instead > > > > [3] Added > > > TileHelloWorld > > > to the struts.xml file ok > > > [4] Added > > > > > 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.. > > > > When I tried to access this page from URL, I always get the following > exception (tomcat5.5.23): > > javax.servlet.ServletException: TileHelloWorld > > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515) > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419) > > > root cause > org.apache.tiles.definition.NoSuchDefinitionException: TileHelloWorld > org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:392) > > org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:368) > > org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104) > org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178) > > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348) > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253) > > > > Any clues, which step I did wrong? > > Thanks a lot! > > > --------------------------------------------------------------------- > 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