aspose file tools*
The moose likes Struts and the fly likes how should header and footer be displayed: by adding images or by including other JSPs? or tiles? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how should header and footer be displayed: by adding images or by including other JSPs? or tiles?" Watch "how should header and footer be displayed: by adding images or by including other JSPs? or tiles?" New topic
Author

how should header and footer be displayed: by adding images or by including other JSPs? or tiles?

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 662
I need to include header and footer and menu in a JSP page(build using struts). How should the header and footer be included?
a) By including header.jpg and footer.jpg and adjusting their position.
or
b) by creating separate JSPs for header.jsp,footer.jsp,menu.jsp and including these?
or
c) above ways wont work fine only option is to use Tiles?
(cant it work fine without using tiles?)

thanks.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

I have used option "b" in the past, though we usually end up implementing custom tags for headers and footers since they wind up being more Java code than positioning.


[How To Ask Questions On JavaRanch]
Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

If you prefer option b you should see this Tiles plugin for struts


Learning some thing New Every Day
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

I have seen people prefer to use option b 80% of the time.


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 662
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how should header and footer be displayed: by adding images or by including other JSPs? or tiles?