I've been trying to learn Struts and come unstuck on it's integration with Tiles. I've been following along with Jason Holmes Struts Complete Ref 2nd ed for (Struts 1) The source associated to book can be downloaded from http://www.jamesholmes.com/StrutsTCR/StrutsTCR2nd-code.zip here Chapter 7 is the area I'm experiencing problems with..
When I try and access the deployed app in Tomcat 6 as follows: http://localhost:9090/MiniHR/ I get the exception: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrieve ActionForward named search This leads me to believe that the error has to be related to index.jsp, the “welcome” file in the web.xml. I am assuming the following snippet of code is the culprit: <html:link action="/viewSearch">Search for Employees</html:link> Action forward named search… Hmm. Struts-config.xml has the following in it: <?xml version="1.0"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd"> <struts-config> <!-- Form Beans Configuration --> <form-beans> <form-bean name="searchForm" type="com.jamesholmes.minihr.SearchForm"/> </form-beans> <!-- Action Mappings Configuration --> <action-mappings> <action path="/viewSearch" forward="search.page"/> <action path="/search" type="com.jamesholmes.minihr.SearchAction" name="searchForm" scope="request" validate="true" input="search.page"/> </action-mappings> <!-- Message Resources Configuration --> <message-resources parameter="com.jamesholmes.minihr.MessageResources"/> <!-- Tiles Configuration --> <plug-in className="org.apache.struts.tiles.TilesPlugin"> <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/> </plug-in> </struts-config> tiles-defs.xml has the following in it: <?xml version="1.0"?> <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN" "http://struts.apache.org/dtds/tiles-config_1_3.dtd"> <tiles-definitions> <!-- Main Layout --> <definition name="main.layout" path="/mainLayout.jsp"> <put name="title" value=""/> <put name="header" value="/header.jsp"/> <put name="body" value=""/> <put name="footer" value="/footer.jsp" /> </definition> <!-- Search Page --> <definition name="search.page" extends="main.layout"> <put name="title" value="ABC, Inc. Human Resources Portal - Employee Search"/> <put name="body" value="/search.jsp"/> </definition> </tiles-definitions> Is there an obvious error that I need to correct here? It's got be baffled at the moment. Cheers in advance for any enlightenment you can give me. -- View this message in context: http://www.nabble.com/Cannot-retrieve-ActionForward-named...-tp17667182p17667182.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]