Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 27924 invoked from network); 10 Mar 2008 18:33:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 18:33:30 -0000 Received: (qmail 23863 invoked by uid 500); 10 Mar 2008 18:33:16 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 23832 invoked by uid 500); 10 Mar 2008 18:33:16 -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 23821 invoked by uid 99); 10 Mar 2008 18:33:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 11:33:16 -0700 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [150.148.0.65] (HELO ironport5.fda.gov) (150.148.0.65) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 18:32:39 +0000 X-SBRS: None X-MID: 22972694 Received: from fmd3tj001.fda.gov ([10.160.10.76]) by ironport5.fda.gov with ESMTP; 10 Mar 2008 14:32:47 -0400 Received: from FMD3VS011.fda.gov ([10.160.10.63]) by FMD3TJ001.fda.gov with Microsoft SMTPSVC(6.0.3790.1830); Mon, 10 Mar 2008 14:32:48 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How can I combine a result (tiles + xslt)? Date: Mon, 10 Mar 2008 14:32:39 -0400 Message-ID: <1F2B02B194D7EA4D811573D1BE9FB0134B9E70@FMD3VS011.fda.gov> In-Reply-To: <1F2B02B194D7EA4D811573D1BE9FB0134B9E5C@FMD3VS011.fda.gov> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How can I combine a result (tiles + xslt)? Thread-Index: AciAg3+PcoRS4GBkTLmYAQIBmOgN2AAIO8TAAI2dpjA= References: <323704.76363.qm@web56704.mail.re3.yahoo.com> <1F2B02B194D7EA4D811573D1BE9FB0134B9E5C@FMD3VS011.fda.gov> From: "Griffith, Michael *" To: "Struts Users Mailing List" X-OriginalArrivalTime: 10 Mar 2008 18:32:48.0063 (UTC) FILETIME=[23D564F0:01C882DD] X-Virus-Checked: Checked by ClamAV on apache.org Hi all,=20 I checked out the current branch from the Tiles SVN repository: http://svn.apache.org/repos/asf/tiles/framework/trunk/ and built it. Version is 2.1.0-SNAPSHOT. This appears to be incompatible with the Struts2Tiles plugin? Has anyone run into this? The error is: Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener java.lang.IllegalStateException: RendererFactory not specified I tried adding additional Tiles configuration information as specified at: http://struts.apache.org/2.x/docs/tiles-plugin.html and http://tiles.apache.org/tutorial/configuration.html using the context-param and listener, but with the same error. This exception is not thrown with Tiles 2.0.5. I did not see a tag for tiles 2.0.6 in the SVN tree, where can I get the tiles-2.0.6-snapshot? Any help would be appreciated! MG -----Original Message----- From: Griffith, Michael * [mailto:Michael.Griffith@fda.hhs.gov]=20 Sent: Friday, March 07, 2008 4:44 PM To: Struts Users Mailing List Subject: RE: How can I combine a result (tiles + xslt)? Dave,=20 I did. I will try both, easy path first. I'll let you know what I find so that you can close the JIRA incident I opened. I did look at the JIRA ticket Antonio posted, and it seems likely that is the problem. Thanks to all that replied, especially all the extra effort that Martin went to. Cheers! MG -----Original Message----- From: Dave Newton [mailto:newton.dave@yahoo.com]=20 Sent: Friday, March 07, 2008 12:45 PM To: Struts Users Mailing List Subject: Re: How can I combine a result (tiles + xslt)? Did you see Antonio's post about how it's probably a bug in Tiles?! Seems like it would be quite a bit easier to try his idea than all this. --- Martin Gainty wrote: > Good Afternoon Michael >=20 > I just ran thru the scenario you described on a 'healthy' jsp page and see > this debug output: > 03-07 12:58:52,718 DEBUG > (org.apache.struts2.interceptor.validation.AnnotationValidationIntercept or:1 > 34) - Validating /tags/non-ui/actionTag/form with method execute. > 2000-03-07 12:58:52,734 DEBUG > (org.apache.struts2.dispatcher.ServletDispatcherResult:113) - Forwarding to > location /tags/non-ui/iteratorTag/done.jsp > [GC [DefNew: 3968K->0K(4032K), 0.0108816 secs] 49623K->47040K(68568K), > 0.0109704 secs] > [GC [DefNew: 3968K->0K(4032K), 0.0168407 secs] 51008K->48964K(68568K), > 0.0169301 secs] > 2000-03-07 12:58:52,906 DEBUG (org.apache.struts2.components.UIBean:526) - > Rendering template /template/xhtml/a > 2000-03-07 12:58:52,921 DEBUG > (org.apache.struts2.components.template.FreemarkerTemplateEngine:135) - > Rendering template /template/simple/a.ftl > [GC [DefNew: 3968K->0K(4032K), 0.0051196 secs] 52932K->49117K(68568K), > 0.0052029 secs] > 2000-03-07 12:58:52,937 DEBUG (org.apache.struts2.components.UIBean:526) - > Rendering template /template/xhtml/a-close > 2000-03-07 12:58:52,953 DEBUG > (org.apache.struts2.components.template.FreemarkerTemplateEngine:135) - > Rendering template /template/simple/a-close.ftl > 2000-03-07 12:58:52,953 DEBUG > (org.apache.struts2.dispatcher.ActionContextCleanUp:122) - skipping cleanup > counter=3D1 > [GC [DefNew: 3966K->0K(4032K), 0.0038605 secs] 53083K->49280K(68568K), > 0.0039430 secs] > [GC [DefNew: 3968K->0K(4032K), 0.0232088 secs] 53248K->52251K(68568K), > 0.0232965 secs] > [GC [1 CMS-initial-mark: 52251K(64536K)] 52251K(68568K), 0.0012270 secs] > [CMS-concurrent-mark: 0.361/0.361 secs] >=20 > to repeat the scenario- > deploy struts2-showcase-2.0.11 to TC (its a monster so this will take a > while..) > vi /tags/non-ui/actionTag/showActionTagDemo.jsp > add these lines to showActionTagDemo.jsp >=20 > >
> > ignoreContextParams=3D"true"/> >
> >=20 > add these configuration lines to /WEB-INF/classes/struts-tags-non-ui.xml to > configure in a 'healthy' action class and a result > > /tags/non-ui/iteratorTag/done.jsp > >=20 > insert the following jsp to /tags/non-ui/iteratorTag/date.jsp > <%@taglib prefix=3D"s" uri=3D"/struts-tags" %> > > > This is done.jsp > > >

This is done.jsp

> > >=20 > in a scratch folder create the necessary ActionTagDemo folder > use the following build.xml for building with > ant compile >=20 > > >=20 > > > > > > > > >=20 > > > > > location=3D"/struts/struts-2.0.11/lib/struts2-core-2.0.11.jar"/> > > > > > > > location=3D":/SPRING/spring-framework-2.0.6/target/mock-classes"/> > > > > > > > > > > location=3D"/SPRING/SPRING~1.5/SPRING~1.5-W/SPRING~1.5/dist/spring.jar"/>= > > > > >=20 > > > > depends=3D"dist" > description=3D"default: build everything" > /> >=20 > > > > >=20 > depends=3D"compile" > description=3D"create distributables (jars etc)"> > > > > > > > > destdir=3D"classes" > classpathref=3D"compile.classpath" > debug=3D"on" > deprecation=3D"on"/> > > >=20 > then edit in the following Action java file > /tmjee/testing/ActionTagAction.java >=20 > package tmjee.testing; > import com.opensymphony.xwork2.ActionSupport; > import org.apache.struts2.ServletActionContext; > import java.lang.*; > public class ActionTagAction extends ActionSupport > { > public String execute() throws Exception { > return "done"; > } > public String doDefault() throws Exception { > ServletActionContext.getRequest().setAttribute("stringByAction", "This > is a String put in by the action's doDefault()"); > return "done"; > } > } >=20 > ant compile > copy the compiled classes to Tomcat struts2-showcase-2.0.11 > copy /tmjee/testing*.class > $TOMCAT_HOME/webapps/struts2-showcase-2.0.11/WEB-INF/classes/tmjee/testi ng >=20 > go to TC Manager > reload the web application so TC container will re-read the configuration > for struts2-showcase-2.0.11 > http://localhost:8080/manager/html/reload?path=3D/struts2-showcase-2.0.11= >=20 > now reference the affected jsp > http://localhost:8080/struts2-showcase-2.0.11/tags/non-ui/actionTag/show Acti > onTagDemo.action >=20 > please verify that you see >=20 > This is done.jsp >=20 > at the bottom of page >=20 > Caveat: This is a base test to see if > > ignoreContextParams=3D"true"/> > to determine if tiles:insertAttribute and s:action work without closing the > socket streams.. >=20 > I did'nt test out different freemarker templates or combinations > If possible could you provide any or details for > The action class you are implementing > The full jsp you are using for view > *Any/all* freemarker templates (*.ftl) you are implementing > configuration files > (web.xml,struts.xml,struts-validation.xml,struts-tags-non-ui.xml...) >=20 =3D=3D=3D message truncated =3D=3D=3D --------------------------------------------------------------------- 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