Philipp Meier wrote:
As for objects being created, I haven't run a profiler or anything like
that. Can you give me some more detail of what you're seeing that is "bad"
and what you're seeing that is "very bad"? :)
Well, just tracing an action invocation there's a bunch of objects being created, for example some ArrayLists. It adds up to a lot of objects. It would be better if the helper structures could be reused somehow.
Can't we use a proxy for this? Actions should at least be safe to reuse if
programmed carefully. Or am I wrong here?
This has been discussed before, but no, actions cannot be safely reused. The basic problem is reinitializing actions to a safe state, which is a nightmare in the general case. It is way easier and better to either use stateless sessions (a la Struts) or simply instantiate them each time. If you do it the Struts way, then you need to introduce form beans, which cannot be safely reused either, so you're back at square one.

/Rickard

--
Rickard Öberg
[EMAIL PROTECTED]
Senselogic

Got blog? I do. http://dreambean.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


Reply via email to