aspose file tools*
The moose likes Other Application Frameworks and the fly likes Sitemesh or XSLT for layout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Sitemesh or XSLT for layout" Watch "Sitemesh or XSLT for layout" New topic
Author

Sitemesh or XSLT for layout

Dilip Ganesh
Greenhorn

Joined: Sep 30, 2011
Posts: 24
Hi to all,

I am designing a layout for my crm project now.

Now i am ended with 2 options one is sitemesh to define the layout or XSLT to define a layout.

Sitemesh will run at runtime from the server , it wont cause any issue if the number of request is high?

I guess XSLT will run at the browser based on the Xpath , is this correct?

Which one is better to use?

Please help me

Thanks
Daniel Doboseru
Ranch Hand

Joined: Sep 26, 2011
Posts: 57
In a SiteMesh vs. XSLT you can always say who is the best. For you, I think SiteMesh would be easier to use, but the page is rendered on the server, and as you said, for a big number of requests it might cause you trouble. How the application will be deployed? Is widely used? Or just internally in a company for example?
Ove Lindström
Ranch Hand

Joined: Mar 10, 2008
Posts: 326

Daniel Doboseru wrote:In a SiteMesh vs. XSLT you can always say who is the best. For you, I think SiteMesh would be easier to use, but the page is rendered on the server, and as you said, for a big number of requests it might cause you trouble. How the application will be deployed? Is widely used? Or just internally in a company for example?


SiteMesh is nice if you are producing more or less "static" pages depending on some input and/or time. Then you can always use a web cache or even an accelerator such as Akamai or EdgeCast to deliver your pages.

However, if your pages contains a lot of data that are of a more personal kind, such as account information, user statistics and such, I often choose to have a more or less "static" page loaded from the server that contains placeholders for the personalized data and then we load that data using web service. Often we return a JSON-object from the server and "loads" it into the page using scripts.
Dilip Ganesh
Greenhorn

Joined: Sep 30, 2011
Posts: 24
Thank-you for all your replies

Dilip
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sitemesh or XSLT for layout
 
Similar Threads
Sitemesh with FORM SUBMIT
Light alternative to SiteMesh/Tiles?
SiteMesh
what decoration facilities are available in JSF ?
MyFaces Sitemesh Problem