Table of Contents
1.Introduction............................................................................................................................1
1.1.Introduction.................................................................................................................1
2.InstallationofStruts ................................................................................................................ 2
3.TheFirstTry:SimpleJSP ........................................................................................................ 3
4.SecondTry:StrutsForInternationalisation ............................................................................... 4
5.StrutsforForms ...................................................................................................................... 9
5.1.FirstTryatForms ........................................................................................................ 9
5.2.Struts:IntroducingtheActionForm ............................................................................... 14
5.3.A betterwayto seperate Bookand BookForm ................................................................ 17
5.4.HandlingInvalidEntries ............................................................................................... 18
5.5.Recapitualation:Whereweare ...................................................................................... 21
6.UsingLogic............................................................................................................................23
6.1.FirstTryatLogic ......................................................................................................... 23
6.2.AdvancedLogic...........................................................................................................24
7.Templates...............................................................................................................................30
8.BeanstoXML ........................................................................................................................ 33
9.ReplacingJSPwithXSLT ....................................................................................................... 37
10.IntroducingAspectJ ..............................................................................................................39
11.AntforCompilationandDistribution ..................................................................................... 42
11.1.InstallationofANT .................................................................................................... 42
11.2.WhatisANT.............................................................................................................. 42
11.3.ConfigurationofANT ................................................................................................ 42
11.4.UsageofANT ............................................................................................................ 43
12.Conclusions..........................................................................................................................46
13.LargeScaleExample............................................................................................................. 47
14.FAQ.....................................................................................................................................48
15.Epilogue...............................................................................................................................50
15.1.TechnicalBackgroundofthisDocument ...................................................................... 50
15.2.AbouttheAuthor ....................................................................................................... 50
16.UserComments ....................................................................................................................52
16.1.Mails.........................................................................................................................52
16.2.PostCards..................................................................................................................53
A.Glossary................................................................................................................................57
B.SolutionstoExercises............................................................................................................. 58
B.1.CDs............................................................................................................................58
B.2.MixedSolutions ..........................................................................................................60
C.Bibliography..........................................................................................................................61
Struts Tutorial
iv