struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig McClanahan" <>
Subject Re: How dose JFS deal with multi-threads
Date Sun, 23 Apr 2006 22:51:56 GMT
On 4/23/06, 王曾wang_zeng <> wrote:
> Graig,thank you for your answer.
> Acorrding to your answer, JSF component tree should be created everytime a
> request arrives. Will it be a waste of time.
> use hidden-type input html tag to record the status of the
> component
> tree. Dose JSF do it the same way?
JSF gives you a choice of client-side or server-side state saving.  If you
select client side, it is done in a manner very similar to how ASP.NET works
(with a hidden field).  If you select server side, the state is stored in
session scope.

>From a strictly *computational* performance point of view, server side state
saving will generally be better, because the state does not actually have to
be serialized and deserialized.  But, of course, you are trading off memory
between requests for the computational overhead of reconstructing the tree.
There is no one right answer for all applications, so it is nice to have a
choice so you can try both and select the one that works better overall for
your particular scenario.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message