Class Messages

  • All Implemented Interfaces:
    I_CmsMessageBundle

    public final class Messages
    extends A_CmsMessageBundle
    Convenience class to access the localized messages of this OpenCms package.

    Additionally two utility methods for localization in the context of TagSupport implementations of the org.opencms.jsp package are provided .

    The javax.servlet.jsp.tagext.TagSupport API constraint only allows to throw certain Exception types which forbids to use CmsException which will be localized with the current user's locale at the time the request is evaluated.

    At the same time TagSupport implementations may use their member pageContext to get the CmsObject and therefore the user request's locale.

    These methods provided here factor out the localization of exception messages and return Strings for the org.opencms.jsp pacakge.

    Since:
    6.0.0