struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malani, Prakash" <>
Subject RE: Help!!!: Decorate available Struts webapp with Tiles
Date Fri, 16 Aug 2002 15:48:01 GMT

How are you doing?

I would try something like this:

Let's say we have screens like,, etc.,
that are without decoration.

Using Tiles, let's define a defintion like:
	<defintion name="baseDef" path="/layout/baseLayout.jsp">
		<put name="header" value="/header.jsp"/>
		<put name="body" value=""/>
		<put name="footer" value="/footer.jsp"/>

Now, for each screen extend the above defintion
	<defintion name="searchCustomerDef" extends="baseDef">
		<put name="body" value="/">

Now, map searchCustomerDef as forward of in

Repeat the above process for

Test / in the browser.

That should do it...

Best regards,

> Hi,
> I've developed a Struts webapp without decoration (mean just 
> the body screens). We now want to decorate it by adding 
> header/footer using Tiles. I think there could be an easy way 
> to do it without change much of the code, but still don't 
> know how (I'm new to Tiles). Could anyone please explain how to do it?
> If I go futher, e.g. put some of the available screens in 
> tabs using tab layout, then is there an easy way to do it?
> Thanks for your help.
> - Thanks

eBuilt, Inc. - Builders of Industrial-Strength e-Business
Learn Java! (
Learn Design Patterns! (
Want answers to Java, OOAD, UML, Design Patterns, EJBs, JSPs, Servlets, XP,
etc? (

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message