Try making a JSP like this, where you substitute "myFirstDefiniton" for the name of the definition you wish to import into the JSP:
<%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> <tiles:insert definition="myFirstDefinition" flush="true" /> Section 6 (6.2.X specifically) from this old site is stilly very accurate and should relate to what you are trying to do: http://www2.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292383 Regards, David -----Original Message----- From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 2:10 PM To: Struts Users Mailing List Subject: Tiles 1.29 and XML definition Hi, Now that I switched to Tiles from pure jsp I get 404 trying to access page. Before I had an login.jsp. Now all the layout is divided into a masterTemplate.jsp, the tileDefinitions.xml, and each subcomponent jsp's, including a loginBody.jsp. But now, how do I access my login page now directly via typed-in-url without having to go through an actionservlet-->forward-->tiles-render? /webapp/login.jsp no longer works, neither does /webapp/login. What if my user is just going to the login page directly? If I use /webapp/login. My struts-config.xml already has an action for Login.do thats gets directed there by jsps... <action path="login" type="gov.usps.rumm.webapp.action.LoginAction" name="loginForm" scope="request" input="/login.jsp" validate="true"> <forward name="failure" path="login"/> <forward name="success" path="administrationOptions"/> </action> but what do I have to do so that someone can type in a URL /webapp/login and get to what once was the login.jsp page? How would I make an action that would trigger rendering the login page, and what would the URL the user would need to use now to get to a login page. Sure I can make an action that maps from servlet to the login page, but how to handle going directly to login page from a URL typed into the browser? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]