I am not sure, but there is a type attribute in the config file. Maybe the suffix of the what you put there is how it defaults?
sandeep -----Original Message----- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 8:45 AM To: Struts Users Mailing List Subject: Re: tiles confusion Maybe I should restate the problem... How would one go about creating a reusable layout where the content to be inserted may come from either the application.properties files (in the simplest case) or from another JSP file? Is this impossible? Do I need to duplicate the layout and do the insertion in different ways depending on the nature of the content? Dean Hoover Dean A. Hoover wrote: > I've been using (and loving) tiles for a few weeks > now, but I guess I am still missing something > fundamental. I have several definitions I am > using for layouts. Then I have specific definitions > that use those layouts to piece everything together. > I mostly use <tiles:get name="foo"/> to insert content > into a given layout. Here's where I am confused: > I have a layout definition that has the following > component: > <put name="instructions" value="${instructions}"/> > > Then, I have a definition that uses that layout. I want > to be able to set the instructions to reference either > a file or a property in application.properties. Is this > possible? Or does the file that is going to be inserted > into needs to know the nature of the insertion? Also, > I frankly still do not understand the difference between > tiles:insert and tiles:get. > > Dean Hoover > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]