struts-config.xml tiles-def.xml … ">

Presentation is loading. Please wait.

Presentation is loading. Please wait.

Pure Struts web-application header.jsp footer.jsp menu.jsp body … + mybody.jsp layout.jsp struts-config.xml tiles-def.xml classical include in servlet.

Similar presentations


Presentation on theme: "Pure Struts web-application header.jsp footer.jsp menu.jsp body … + mybody.jsp layout.jsp struts-config.xml tiles-def.xml classical include in servlet."— Presentation transcript:

1 Pure Struts web-application header.jsp footer.jsp menu.jsp body … + mybody.jsp layout.jsp struts-config.xml tiles-def.xml classical include in servlet response classical include in servlet response

2 Pure Struts web-application When an action forwards to a Tiles page The top-level template (layout.jsp) is played and runs the include of the different sections (header, body,..) Consequences There is no jsp that is capable of totally displaying the "final" web page - only the (Tiles)RequestProcessor is able to do it Calling "layout.jsp" will fail Calling "body.jsp" will partially succeed

3 Struts-faces web-application header.jsp footer.jsp menu.jsp body + myJsfPage.jsp layout.jsp struts-config.xml tiles-def.xml …

4 Struts-faces web-application Action-forwards refer to physical jsp page Exactly like a non-Tiles Struts application No more possible to foward to a logical Tiles page Consequences Every jsp should first insert the desired layout (i.e. the Tiles definition) then enclose the variable parts (such as its body) as parameters of the specified layout insertion The jsps are now capable of totally rendering the "final" web page Calling "myJsfPage.jsp" (as JSF is used to do) will succeed


Download ppt "Pure Struts web-application header.jsp footer.jsp menu.jsp body … + mybody.jsp layout.jsp struts-config.xml tiles-def.xml classical include in servlet."

Similar presentations


Ads by Google