Some time ago when I started with Struts2+Tiles2 I made a simple "blank" Struts2+Tiles2 webapp based on the struts2-blank-2.0.6 webapp. It includes a Tiles2 configuration and a layout with some simple pages, and hopefully all required JARs.
It is maybe not the perfect example but if you think it could be useful you can download it here: http://luniks.net/struts2-tiles-blank.zip Torsten Rick Schumeyer wrote: > I'm trying to follow the directions at > http://struts.apache.org/2.x/docs/tiles-plugin.html > but with no success. At the moment, I am only trying to get the app > running with tiles configured...I'm not actually using tiles yet! > > I get this error: > SEVERE: Exception sending context initialized event to listener instance > of class org.apache.struts2.tiles.StrutsTilesListener > java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester > > Any ideas? > > This is what I have done so far: > > 1) I don't understand step 1 in the web page...I'm not using maven...do > I need to put something somewhere or not? > > 2) I put the contents for step 2 in my web.xml > > <listener> > <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class> > > </listener> > > 3) I put the contents for step 3 in example.xml (I am using the struts > blank application) > > <result-types> > <result-type name="tiles" > class="org.apache.struts2.views.tiles.TilesResult" /> > </result-types> > > > 4) I copied the three tiles jars into my project > (struts2-tiles-plugin-2.0, tiles-api-2.0, tiles-core-2.0) > The directions only mention the plugin...wouldn't I need all of them? > > 5) I try to run the blank app and get the error. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]