You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/01/07 11:14:09 UTC

DO NOT REPLY [Bug 15832] New: - Missing key in resource file causes html:logic tag messagesPresent message="true" to fail...

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=15832>.
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=15832

Missing key in resource file causes html:logic tag messagesPresent message="true" to fail...

           Summary: Missing key in resource file causes html:logic tag
                    messagesPresent message="true" to fail...
           Product: Struts
           Version: 1.0 Beta 3
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: mhaavald@online.no


If the error.general key is not present in the resources file the JSP throws a 
null pointer exception....

The fix is error.general as key in  the resource file .

This is a HARD fault to find!!!

In general the custom libs have BAD handling of error conditions when resources 
are not available.

The tags should check for presence of error.general message key and explain 
that it cannot find it as a WARN...then use it literally 'error.general' in the 
exception text thrown...in this way the developer can see that the message key 
should be defined...

Since the nullpointer is thrown without any explanation this is a BLOCKER!

/Morten

/Morten

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>