Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
StrutsTiles_JSPInclude

StrutsTiles_JSPInclude

Ratings: (0)|Views: 62|Likes:
Published by api-3745771

More info:

Published by: api-3745771 on Oct 17, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

- 1 -
Struts Tiles vs. JSP Include
Author: Pankaj Wadhwa, Mindfire Solutions
www.mindfiresolutions.com
- 2 -
Table of Contents

1. Introduction.\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.. 3 2. Target audience\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026..3 3. Technology Specifications...\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026..3 4. Traditional Struts application example...\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026....4 5. Struts application using JSP include\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026...\u2026\u2026....7 6. Introduction to Tiles.\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.\u2026\u2026... 9 7. Struts application using Tiles...\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.. 10 8. Tiles Inheritance\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026...13 9. Tiles vs. JSP Include\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026...\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026...\u2026..14

9.1. Advantage of Tiles over JSP include.\u2026...\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026...........14
9.2. Disadvantages of Tiles..\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026\u2026.\u2026\u2026\u2026\u2026...14
- 3 -
1. Introduction
Large websites often need a common Look and Feel (L&F). If the L&F is hard coded in all pages,
changing it becomes a nightmare: you would have to modify nearly all pages.
In this document we will try resolve this issue using Struts Tiles Framework, which have been added
into the Struts 1.1 release.
Firstly we will go through a simple struts application that does the work the traditional way and try to
figure out the issues that may come after a period of time.
After that we would modify that example using the JSP include technology and again will try to find
the problems with this technology.
At last we would take a look at the Struts Tiles framework and modify the example using this
technology. We will also list down the differences between the JSP include and Tiles at the end.
So let\u2019s start\u2026\u263a
2. Target Audience

Java developers who are responsible for front end development of JSPs / Html pages. It is expected that
the reader of this document is already familiar with how struts application works and the JSP
technology.

3. Technology used
JDK 1.4 or above, JSP, Tomcat 5.0, Struts

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->