I'm trying to do something apparently simple, unfortunately without success. I would 
like to have a simple mapping which forwards to a tiles definition defined in 
tiles-defs.xml. 

Embarrasing caveat: We're having to use struts 1.0 for various reasons.

Here's my setup:

web.xml:
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class>
<init-param>
        <param-name>definitions-config</param-name>
        <param-value>/WEB-INF/tiles-defs.xml</param-value>
</init-param>

tiles-defs.xml:
<tiles-definitions>
        <definition name="brak.default" path="/layouts/defaultLayout.jsp"> 
                <put name="menu" value="/common/menu.jsp" />
                <put name="content" value="${content}" />
        </definition>

        <definition name="brak.search" extends="brak.default">
                <put name="content" value="/search.jsp" />
        </definition>
</tiles-definitions>

struts-config.xml:
<action-mappings>
        <action path="/search" type="org.apache.struts.actions.ForwardAction" 
parameter="brak.search" />
</action-mappings>

When I try this using Struts 1.1, it works fine. But when I switch to the required 1.0 
version and go to /search.do, I get an exception stating 
"java.lang.IllegalArgumentException: request dispatcher url `brak.search' must be 
absolute".

This leads me to suspect a configuration problem, but finding information on 
installing tiles for 1.0 is sparse. (I do, however, have the tilesForStruts1-0.jar in 
my app's classpath.) Apart from including this jar and using ActionComponentServlet, 
are there any other configuration changes that need to be applied to get Tiles working 
for Struts 1.0?

-= James

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to