Although not shown in this example, it is also possible to modify the StyleBean class so that the init method could open the appropriate CSS, instead of referencing the properties resource bundle.
尽管这个示例中没显示,但修改stylebean类,从而使init方法可以打开恰当的CSS,而不必引用属性资源束,这也是可能的。
The *.properties files, kept in the class path of the project, contain key-value pairs and are used as a resource bundle to get the locale-specific runtime-resolved validation messages.
这些 *.properties 文件保存在该项目的类路径中,文件内包含键-值对,并可用作资源包来获得特定于本地语言环境的运行时解析的验证消息。
The resource bundle is located and is loaded into a new instance of the sample class called MessagesBundle.
定位资源包后,它被加载到名为 MessagesBundle 的示例类的新实例中。
应用推荐