On 5/10/05, Yan Hu <[EMAIL PROTECTED]> wrote:
> Hi:
> I have been playing with JSF lately.  I really like it since it is very 
> intuitive.  But as I
> understand it, JSF keeps a component tree for each page with JSF widgets in 
> it on the server. So
> it is heavy weight compared with struts. Could I safely say that struts-based 
> apps are a bit more
> performant than JSF ones? someone please shed some light on it.......

It wasn't long ago that we were having *exactly* the same conversation
regarding Struts versus scriptlet-based applications. The more things
change the more they stay the same :)

If performance is a primary concern, then the best advice is to run
your own benchmarks. When it comes to performance, it's not a good
idea to trust anyone else's tests, because your mileage can, and
probably will, vary. Often, we may not ever be talking about a
difference that makes a difference.

It's especially hard to compare performance between applications
written by different people at different times, perhaps for different
reasons. The Petstore debacle taught us that.

If the decision between approaches is not obvious, then do the first
interation of your application using both, and compare the results for
yourself.

If  the decision is not important enough to justify doing one
interation twice, then you might as well flip a coin and move on :)

-Ted.

PS - If you are coming from a  Struts background, a very good JSF
primer is "Mastering JavaServer Faces" by Dudney at all.

* 
http://opensource.atlassian.com/confluence/oss/pages/viewpage.action?pageId=139

Commissions for books purchased through this link go directly to the ASF.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to