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 2002/07/30 03:45:09 UTC

DO NOT REPLY [Bug 11267] New: - bean:message bug

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

bean:message bug

           Summary: bean:message bug
           Product: Struts
           Version: 1.1 Beta 1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: steveleung.geo@yahoo.com


When I use <bean:message key="label.test"/>, It will generate exception like 
this:

java.lang.IllegalArgumentException: Unmatched braces in the pattern.
	at java.text.MessageFormat.applyPattern(MessageFormat.java:464)
	at java.text.MessageFormat.(MessageFormat.java:346)
	at org.apache.struts.util.MessageResources.getMessage
(MessageResources.java:327)
	at org.apache.struts.util.RequestUtils.message(RequestUtils.java:808)
	at org.apache.struts.taglib.bean.MessageTag.doStartTag
(MessageTag.java:295)
	at org.apache.jsp.login$jsp._jspService(login$jsp.java:205)

In the properties files:
label.test=Hello {

When I use MessageResources.getMessage(), it do not produce such error.

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