This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes What are the advantages? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "What are the advantages?" Watch "What are the advantages?" New topic
Author

What are the advantages?

Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
What are the advantages of the tapestry framework over struts?
Which IDE's at present can plugin the tapestry to it?


Tina
SCJP 1.4, SCWCD 1.4
Anselm Paulinus
Ranch Hand

Joined: Sep 05, 2003
Posts: 389
Like some one already mentioned; tapestry is component based while struts is action based.

Tapestry uses a html template to display its view compared to struts that uses jsp - This means you can view or see what the view is going to be like in an html editor for tapestry, while in the case of struts you are going to need a appserver to view what your view is going to look like - actually this is an advantage tapestry has over JSF.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Anselm Paulinus:
Tapestry uses a html template to display its view compared to struts that uses jsp - This means you can view or see what the view is going to be like in an html editor for tapestry, while in the case of struts you are going to need a appserver to view what your view is going to look like


This isn't entirely true. You are still going to have dynamic data that won't be available in both cases. Both tapestry templates and JSP uses the Expression Languages so you are going to have ${} placeholders. Not to mention JSP's taglibs and Tapestry's XML Namespaces (that server basically the same purpose) are going to render incorrectly.

That said I find it hard to believe that anyone doing serious web application development spends time looking at their pages outside of the app server's container.


GenRocket - Experts at Building Test Data
Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
may be like at very initial scratch stage, when one needs to check if all the components are placed out correctly, it helps. Noone might do that, but its still an added feature.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by sreerupa basu:
may be like at very initial scratch stage, when one needs to check if all the components are placed out correctly, it helps. Noone might do that, but its still an added feature.


And yet, just as possible with JSP's as it is with T5 templates.
Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
But paulinus mentions, it can be checked without an appserver running!
But when one is building a web application, an appserver is also present....so i guess there should be some stronger advantages or some special cases when using tapestry framework is easier. I am getting really interested in finding out the whole idea of how this Tapestry works.

Which design pattern does this support ....mainly?
Alexander Kolesnikov
author
Ranch Hand

Joined: Feb 26, 2005
Posts: 99
Originally posted by Gregg Bolinger:



That said I find it hard to believe that anyone doing serious web application development spends time looking at their pages outside of the app server's container.


Agreed, but still it is much simpler to convert an HTML mock up that you used to inspire your customers into a Tapestry template than into a JSP page. Plus, in Tapestry there is simply no way to mix presentation and code.

But these are details. I would say that if the application is simple, there is no difference which framework you choose. But the more complex the application is and the more applications you create, the better the benefits of Tapestry will be seen as you will have to write much less code and you can easily package repeating functionality into your own libraries of custom components.


Alexander Kolesnikov<br />Java Web Developer<br />SCJP 1.4, SCWCD 1.4, SCBCD 1.3<br /><a href="http://sundraw.ws" target="_blank" rel="nofollow">Tapestry 5: Building Web Applications</a><br /><a href="http://sundraw.ws/batik.jsp" target="_blank" rel="nofollow">Java Drawing With Apache Batik</a>
 
 
subject: What are the advantages?
 
Similar Threads
Tapestry ?
Help -two submit button-how to handle..
To author
What is the soul purpose of Tapestry
Future of Tapestry