ResourceBundle rb =
ResourceBundle.getBundle("LocalStrings",request.getLocale());
这句话要找classes目录下的LocalStrings.properties或LocalStrings_zh_CN.properties。
看看有没有这个文件。
ResourceBundle.getBundle("LocalStrings",request.getLocale());
这句话要找classes目录下的LocalStrings.properties或LocalStrings_zh_CN.properties。
看看有没有这个文件。
在http://127.0.0.1:8080/examples/servlet/HelloWorldExample
上就可以运行阿!
不是LocalStrings.properties.txt
看看扩展名。
LocalStrings_zh_CN.properties
试试
你是怎么设置的啊!
但是你在WEB.XML文件中的<servlet-mapping>中已经舍弃了servlet,所以你的正确的
URL=http://127.0.0.1:8080/myApp/HelloWorldExample