You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "White, Joshua A (CASD, IT)" <Jo...@thehartford.com> on 2003/03/04 21:27:38 UTC

Beginner Tiles Problem

I have successfully set up tiles using a tiles-def.xml file.  In this file,
I have set up a definition for "my.default".

I have been successfully able to view this layout by inserting the following
code into a jsp:
	<%@ taglib uri="struts-html" prefix="html"%>
	<%@ taglib uri="struts-bean" prefix="bean"%>
	<%@ taglib uri="struts-tiles" prefix="tiles"%>
	<tiles:insert definition="my.default"/>

Again, this works fine.  I have been attempting to declare a global forward
mapping for the same layout:
    <global-forwards>
        <forward name="welcome" path="my.default" redirect="false"/>
    </global-forwards>

I have inserted the following code into a jsp file to test the forwards:
	<%@ taglib uri="struts-logic" prefix="logic"%>
	<logic:forward name="welcome"/>

When I hit the page containing this code, Tomcat gives me a 404 ("The
requested resource (/myapp/my.default) is not available.").  Whats happening
here?  

Joshua



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org