DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5739>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5739

Struts fails silently in too many places





------- Additional Comments From [EMAIL PROTECTED]  2003-08-30 21:06 -------
I agree that Stuts could do more to verify the "preflight" status of its
configruation files. It's just a matter of getting someone to "make it so" =:0)

I'm not enough of an XML expert to know if a schema could solve the problem.
Many parts of the logic can't be determined by reading a single configuration.
The checks need to be made on the object graph once it is deployed. Once check,
for example, might be whether the ActionForm and Action classes can be
instantiated. 

Something that come up in a conversation with another developer was the idea of
using JUnit or Struts TestCase to make the checks. Something like this could be
run as an Ant task as part of a build. 

Another idea might be to use an Action to do the verification. The Action has
access to everything in the object graph, and it could do a drunkard's walk
through the mappings and validator forms to see if everything jived. 

-Ted.

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

Reply via email to