Hello:
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"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<!-- 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" />
</definition>
<!-- Tiles definition of home page -->
<definition name="page.home" extends="base.definition">
<put name="body" value="/home.jsp" />
</definition>
</tiles-definitions>
I want to invoke the page.home definition, so I declared this in my
struts-config.xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<action-mappings>
<action
path="/home"
forward="page.home" />
</action-mappings>
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
<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" />
</plug-in>
</struts-config>
But, when I go to:
http://www.pricetracker.jammconsulting.com/pricetracker/home.do
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?
Thanks,
Neil
--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]