Hi,

How are you doing?

I would try something like this:

Let's say we have screens like searchCustomer.do, submitCustomer.do, 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"/>
        </defintion>

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

Now, map searchCustomerDef as forward of searchCustomerComplete.do in
struts-config.xml

Repeat the above process for submitCustomer.do

Test /searchCustomerComplete.do in the browser.

That should do it...

Best regards,
-Prakash


> 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
(http://www.eBuilt.com)
Learn Java! (http://www.cact.csupomona.edu/javacert.html)
Learn Design Patterns! (http://www.cact.csupomona.edu/UML_Specialist.htm)
Want answers to Java, OOAD, UML, Design Patterns, EJBs, JSPs, Servlets, XP,
etc? (http://groups.yahoo.com/group/bartssandbox)


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to