• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Topic: selecting Tiles or SiteMesh for an Struts web application application?(advice

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
thank you for getting your time reading my post.
I am developing an Struts based web application ,
My pages have 6 additional part + content +footer some of parts (horizental menu and header) are Flash based and content could have flash too.
which one is better for me ?
Sitemesh or Tiles . I need internationalization and RTL + LTR support

can you pleas help me choosing one of them ?
 
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
don't know much about sitemess...uh mesh, but since it doesn't come bundled and recommended with struts, chances are you are in for some figurings and unpleasant surprises.

struts has 'native' support for tiles. however, you will need to pull some trick with the struts-html library for the LTR/RTL (like extend and override to support LTR/RTL) since html:text does not support the 'dir' attribute. tiles though can be used to insert form variations (say 1 form for LTR and another for RTL). however, it won't be pretty since you can't use the struts-html library and will have to deal with manual handling of forms and validations. struts does provide a great way to handle languages re: internationalization of text and messages.

please do let me know if sitemesh works well with struts in your research.
[ May 02, 2005: Message edited by: alan do ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I admit to limited exposure to both Tiles and Sitemesh. In the last project I was involved with, we used Sitemesh. The project layouts were simple so we had a chance to create proof of concept codes for both, then eventually settled for sitemesh. For reference, we used the on-line documentation of OpenSymphony and a book owned by one of our colleagues titled Professional JSP Site Design published 2001.

For Tiles to be used, it should be integrated at the start of development. Sitemesh is based on filters so it can be integrated at a later stage of the project. This is good because, you can immediately focus on doing the business logic of the app and worry about doing other aspects later e.g. page decoration/layout etc..

Maybe others could also tell us their assessment in evaluating the two.
 
alan do
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
good to know aldre...here's another thought ramina...how about looking into JSF? perhaps the JSF forum can give you some insight on whether or not it will address your requirements. struts along with struts-faces should work quite well with JSF.
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I fell in same situation before .first i start the job with tiles (there are several books and tutorial for it.)but then i switched to Sitemesh , as i found it easier to use.
One decoration and all of your pages will get the common sections.

hope it helps
 
alan do
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

One decoration and all of your pages will get the common sections.


if i understand you correctly, you weren't using tiles properly. if you have a master tile, one change of the master tile (eg. in a common section), the entire site changes.
 
Masoud Kalali
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know that we can extends tiles definition , and just chnge one of its
ares (probably our body).
but as you certailnly know , you need difinitions for al of your forwards

Am i correct?

Thank you
 
alan do
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how does needing a definition for each forward change the fact that changing a part of the master tile changes the entire layout (by the way, you don't...forward can be a tile, jsp, or another action)? does sitemesh read your mind and know which page to forward the user to when you decide to change your forwarding?

maybe i am not understanding the advantage of sitemesh you are presenting. please do explain (and other reasons why sitemesh is of an advantage) since you have experiences in both. i'd love to learn more. thanks.
 
Sheriff
Posts: 17652
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out Matt Raible's blog entry on Tiles vs. SiteMesh
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic