liooil wrote:

Sorry, Completion :

note if i code my tile like in the following, "authenticationLayout"
tile does not exist as a JSP file ...

<!-- Page layout used as root for all pages. -->
<definition name="rootLayout" path="/tiles-rayouts/rootLayout.jsp">
<put name="header" value="/tiles-components/header.jsp"/>
<put name="body" value="/tiles-components/body.jsp"/>
<put name="footer" value="/tiles-components/footer.jsp"/>
</definition>



<!-- Authentication page --> <definition name="authenticationLayout" extends="rootLayout"> <put name="header" value="/tiles-components/header.jsp"/> <put name="body" value="/tiles-components/authentication.jsp"/> <put name="footer" value="/tiles-components/footer.jsp"/> </definition>

OK, all you have there are the XML-formatted definitions used by your webapp. You still need to have a JSP that uses the "tiles.tld" tag library and the "tiles:insert" tag to specify the appropriate definition [includes the layout]. That JSP is what you should specify in your action mapping as the input source.


I see that definitions of this nature can also be used as forwards, too, based on what I read not long ago in "Programming Jakarta Struts, 1st Ed." [O'Reilly], page 347.


-- Chuck Chopp

ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com

RTFM Consulting Services Inc.     864 801 2795 voice & voicemail
103 Autumn Hill Road              864 801 2774 fax
Greer, SC  29651

Do not send me unsolicited commercial email.


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



Reply via email to