• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Monica Shiralkar
Ranch Hand
Posts: 842
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9297
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yogesh Lonkar
Ranch Hand
Posts: 94
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you prefer option b you should see this Tiles plugin for struts
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have seen people prefer to use option b 80% of the time.
 
Monica Shiralkar
Ranch Hand
Posts: 842
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic