• Post Reply Bookmark Topic Watch Topic
  • New Topic

c:import or tiles or ?  RSS feed

 
Clifford Adams
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking at ways to include common page elements in my jsp pages. Are there any advantages or using a system like tiles as opposed to c:import tags?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I like to keep things simple unless there's a really really good reason to adopt Rube Goldberg contraptions.
 
Clifford Adams
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bear Bibeault:
Personally, I like to keep things simple...


I assume you're advcating c:import, then, eh?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or custom actions if it makes more sense.
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use Sitemesh which afaik has some advantages over c:import,
1-all decoration are defined in xml files.
2-i18n could achieve automatically based on your curent locale
3-ability to apply style for each element in a page (using different decorators)
4-very easy to use and straight forward. (in comparesion with Tiles?)
and many more.

you can find sitemesh in : www.opensymphony.com/sitemesh/
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!