floater
Java Jedi
总版主
发贴: 3233
积分: 421
|
于 2003-05-16 22:45
That's why I hate those xml based action mappings.
1. If you have 50 applications, each app has 50 actions in average, then you end up with 2500 action mappings. If you put all of them in one file(1.0 case, 1.1 is better), how to spot errors???
2. If you crack one spot in the xml file, the whole thing simply blows off the roof, like that space shuttle.
3. If I am using jsp, why in the world do I have to bring a xml parser to read this?
I guess those Struts folks are not experienced enough, just hit a jackpot. They didn't think how users are going to use that framework.
xml is good, but not as good as simple properties file in this case, solid, simple, not so easy to break others' irrelevant code.
Well, just a little bit off track, but hope it's useful to see the limitation of struts.
As for the lower version struts lib, don't ask me why it's there, *you* put it there, , hehe... kidding. It happens. I did that many times.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler, Refactoring - Improving the Design of Existing Code
|