You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org> on 2005/02/08 02:29:12 UTC

[jira] Commented: (BEEHIVE-243) Getting messages from the messageBundle declared in pageflow did not seem to work

     [ http://issues.apache.org/jira/browse/BEEHIVE-243?page=comments#action_58734 ]
     
Eddie O'Neil commented on BEEHIVE-243:
--------------------------------------

I'm able to use the following expressions to bind to the message:

1) ${bundle.myBundle.msg1}
2) ${pageFlow.message}
3) ${bundle['myBundle/testInheritance/parent/messageResource'].msg1}

and all three produce the same result.  I think that the issue from the original bug was that:

  ${bundle['myBundle/resource'].msg1}

needed to use the fully-qualified path of the Struts module as in #3 above.  The expressions:

  ${bundle.default.msg1}
  ${bundle['default/resource'].msg1}

won't work because there isn't a default MessageBundle in the JPF (to do this, just leave off the bundleName).  

One thing to check is that the .properties file is actually making it into a directory like WEB-INF/classes, which is visible to the webapp classloader at runtime.

I'm going to resolve the issue as can't reproduce, but let me know if you see any weird / broken behavior here.

> Getting messages from the messageBundle declared in pageflow did not seem to work
> ---------------------------------------------------------------------------------
>
>          Key: BEEHIVE-243
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-243
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Julie Zhuo
>     Assignee: Eddie O'Neil
>      Fix For: V1Beta
>  Attachments: MessageResourceController.jpf, Messages.properties, index.jsp
>
> Both ${bundle.myBundle.msg1} or ${bundle['myBundle/resource'].msg1} did not return anything from the property file under WEB-INF/src/properties/Messages.properties. Also tried ${bundle.default.msg1 and ${bundle['default/resource'].msg1}. Will attched the jsp/pageflow/properties file shortly. 
> BTW, notice the DRT test in this regard is passing. So, this might be a user issue. :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira