The image changes depending on the page that is being displayed. Ideally I would like to just be able to point to the .gif file in the tiles-def.xml file. Here is what I have so far:
<tiles-definitions> <!-- Student Layout --> <definition name="student.header" path="/secure/header.jsp"> <put name="description" value="/images/student_pg_header/course_details.html"/> </definition> <definition name="student.layout" path="/secure/layout.jsp"> <put name="title" value="Struts Test"/> <put name="menu" value="/secure/student_menu.jsp"/> <put name="body" value="/secure/student_menu.jsp"/> <put name="footer" value="/secure/footer.jsp"/> </definition> </tiles-definitions> I want the student.header to be displayed in the student.layout. Inside the student.header the description changes depending on the page that is being displayed. So right now it is course details but later it could change to let say 4 different things: abc, efg, rts, and xyz. I don't want to have to create a html file for each of these just to have the description display them. Can I just point to the gif file? Also how do I embed the student.header into the student.layout? Thanks, Susan -----Original Message----- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 10:22 AM To: Struts Users Mailing List Subject: Re: [Tiles] Embedding tiles inside of tiles Susan G. Conger ha scritto: > First, my header.jsp has a section where the graphic changes depend on > what page is begin displayed. I can't seem to figure out the correct > way to implement this. What do you mean with "graphic"? A picture? Ant how do you want to change this "graphic", I mean, what are the conditions that will cause the "graphic" to change? > Also do I need an html/jsp page to display this image change or can > I just point to the gif file? > I think that you could simply use <html:img> tag for a single gif file instead of a tile. Antonio --------------------------------------------------------------------- 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]