Hey All!

A couple of things I'd like to see in Struts that would make my life much easier:

--1 I would really like to see is the ability to modify the Struts configuration at runtime. I've come across several places where it would make life much easier if that was possible.

Now, I fully understand why you guys did it the way you did it. Locking for access can get ugly... I'm with you on that one.

But how about a bit of a compromise and create a writer preferred Read/Write lock on the struts configuration system?

Something like from Doug Lea's site?
http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html

I've played with it in my own work and have been very happy with the performance of these locks... much better IMO than just raw synchronization, and aside from a code walkthrough to make sure you don't have deadlocks due to holding on a read lock while you acquire a write lock, I've found it pretty simple to program.

-- 2 I've been unable to find any way to query the struts configuration system for classes "outside" of the struts servlet environment. While it provides good data hiding principles, for our own Expresso work, we have to maintain a separate HashMap of configuration items so that classes outside the struts configuration environment can find ActionForwards and ActionMappings for our action classes. Any way to make some of those ActionServlet methods public so we can query it for different configuration items??

Are either of these items a possibility, or am I blowing smoke? :)

Thanks in advance!
                                                        -Mike



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



Reply via email to