资 源 简 介
Provides a mechanism to extract Java strings into a database. Also provides a JSP Tag to easily incorporate database strings into a JSP web page.
Can be used in a Java application thus:-
bundle = ResourceBundle.getBundle("", new SqlResourceBundleControl());bundle.getString("string1");
or in a JSP thus:-
string1 not found - this is the default text
Also supports nested strings, eg.
insert into s_string values(default,"string1",""This is string 1");insert into s_string values(default,"string2",""This is string 2 which includes #string1");
Doesn"t currently support i18n. This is left as an exercise :-)