#1 ResouceBundle as method return type

closed
nobody
None
5
2008-07-06
2008-07-02
Anonymous
No

If ResourceBundle can be returned as method return type, it would be helpful to directly read the locale specific values. E.g.

public ResourceBundle getBundle(HttpServletRequest req, HttpServletResponse resp) {
ResourceBundle bundle = ResourceBundle.getBundle("com.abc.Bundle", req.getLocale());
return bundle;
}

If bundle has a property called "app.title" it should be accessible as #{app.title} in vroom-config.xml

Discussion

  • Farrukh Ijaz
    Farrukh Ijaz
    2008-07-06

    • status: open --> closed