Hi guys: I am runing into problems with my current setup somehow I cannot get my templates to show. My mapped action is: /basic and my current application is mapped at Tomcat4 at http://10.10.66.8/html/ I have tested a simple jsp file that contained straight <tiles insert page:"...."/> and it worked fine.
Now I'm trying to do some fancy stuff by use of an tiles-definitions.xml file: Here are my conf file: **************************** web.xml ************************************** <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <!-- Action Servlet Configuration --> <servlet> <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/tileDefinitions.xml</param-value> </init-param> <init-param> <param-name>definitions-debug</param-name> <param-value>1</param-value> </init-param> <init-param> <param-name>definitions-parser-details</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>definitions-parser-validate</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>validate</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <!-- Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <!-- Struts Tag Library Descriptor --> <taglib> <taglib-uri>/WEB-INF/extensions.tld</taglib-uri> <taglib-location>/WEB-INF/extensions.tld</taglib-location> </taglib> <!-- Struts Tag Library Descriptor --> <taglib> <taglib-uri>/WEB-INF/tiles.tld</taglib-uri> <taglib-location>/WEB-INF/tiles.tld</taglib-location> </taglib> </web-app> ******************************** struts-config.xml ************************* <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> <!-- This is the Struts configuration file for the example application, using the proposed new syntax. NOTE: You would only flesh out the details in the "form-bean" declarations if you had a generator tool that used them to create the corresponding Java classes for you. Otherwise, you would need only the "form-bean" element itself, with the corresponding "name" and "type" attributes. --> <struts-config> <action path="/basic" type="com.cardinal.struts.action.DoFirst"> <forward name="success" path="basicDef"/> </action> </struts-config> ************************** tileDefinitions.xml *************************** <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Used only by Tiles to map query paths to specific templates/pages --> <component-definitions> <definition name="basicDef" path="/base_template.jsp"> <put name="page_sidebar" value="/page_sidebar_template.jsp"/> <put name="center" value="/center_template.jsp"/> <put name="link_sidebar" value="/link_sidebar_template.jsp"/> </definition> <component-definitions> **************************************************************************** Now I'm contantly getting: type Status report message /basic description The requested resource (/basic) is not available. Truth is that I don't exactly know the exact URL, but I tried any possible variation.... what am I dong wrong? Help would be very welcome.... Cheers, Michael === To subscribe/unsubscribe, visit http://list.scioworks.com:8081/guest/RemoteListSummary/camino_user