struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David G. Friedman" <>
Subject RE: Action to invoke a tile definition?
Date Tue, 08 Feb 2005 04:57:51 GMT

Your error messages suggest Struts failed to load.  You should check the
Tomcat log files in $CATALINA_HOME/logs to determine what caused Struts not
to load.


-----Original Message-----
From: Neil Aggarwal []
Sent: Monday, February 07, 2005 11:05 PM
Subject: Action to invoke a tile definition?


I am trying to learn to use tiles but cant figure out how
to invoke my tiles definition.

I have this tiles-defs.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>

 <!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"

  <!-- Base Tiles Definition -->
  <definition name="base.definition" path="/layout.jsp">
    <put name="title" value="PriceTracker" />
    <put name="header" value="/header.jsp" />
    <put name="navigation" value="/navigation.jsp" />
    <put name="footer" value="/footer.jsp" />

  <!-- Tiles definition of home page -->
  <definition name="page.home" extends="base.definition">
    <put name="body" value="/home.jsp" />


I want to invoke the page.home definition, so I declared this in my

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"

      forward="page.home" />


  <message-resources parameter="MessageResources" />

  <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <!-- Path to XML definition file -->
    <set-property property="definitions-config"
                     value="/WEB-INF/tiles-defs.xml" />
    <!-- Set Module-awareness to true -->
    <set-property property="moduleAware" value="true" />


But, when I go to:

I get this error:

HTTP Status 500 - No action instance for path /home could be created


type Status report

message No action instance for path /home could be created

description The server encountered an internal error (No action instance for
path /home could be created) that prevented it from fulfilling this request.


Apache Tomcat/5.0.25

Any ideas?


Neil Aggarwal, JAMM Consulting, (972)612-6056,
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less!

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message