1 import java.util.Locale; 2 import java.util.ResourceBundle; 3 4 5 public class Test { 6 public static void main(String[] args) { 7 ResourceBundle res = ResourceBundle.getBundle("app", Locale.CHINA); 8 System.out.println(res.getString("welcome.msg" )); 9 }10 } Read More
posted @ 2013-03-15 21:27
hi_stefen
Views(151)
Comments(0)
Diggs(0)
直接在struts.xml里面配置: 1 <constant name="struts.devMode" value="true"></constant> 2 <package name="bbs2009_default" extends="struts-default"> 3 4 <global-results> 5 <result name="error">/error.jsp</result> 6 </globa Read More
posted @ 2013-03-15 00:52
hi_stefen
Views(111)
Comments(0)
Diggs(0)
一、struts taglib,已经忘记了。。首先得添加这句1 <%@taglib uri="/struts-tags" prefix="s" %>才能使用标签1 <s:iterator value="categories" var="c">2 <s:property value="#c.name"/> |3 <s:property value="#c.description"/> |4 <a href="adm Read More
posted @ 2013-03-15 00:00
hi_stefen
Views(187)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号