*
The moose likes JSP and the fly likes automatically insert header and footer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "automatically insert header and footer" Watch "automatically insert header and footer" New topic
Author

automatically insert header and footer

Arnav Velimala
Ranch Hand

Joined: Jun 04, 2007
Posts: 37
Hi,

Can anyone suggest the best way to insert header & footer in *all* JSP's. The header and footer is common to all JSPs. We are using Struts and JDK1.4.

Thanks,
Arnav.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Originally posted by Arnav Velimala:
Hi,

Can anyone suggest the best way to insert header & footer in *all* JSP's. The header and footer is common to all JSPs. We are using Struts and JDK1.4.

Thanks,
Arnav.


I found this to be a good article when I did this a *long* time ago (someone else may have a more up to date solution)

http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html?page=1

Cheers,
Martijn


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Look up the terms prelude and coda.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Originally posted by Bear Bibeault:
Look up the terms prelude and coda.


Interesting! I'm obviously light years behind in the UI/front end world of Java/JEE (I think I'm one of the few crazies writing JCA connectors in the world), I'll make sure to keep posting that fact if I try to provide answers in this area, thanks Bear!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: automatically insert header and footer