我已经将RichFaces演示逐字放在了index.jsp页面中。由于演示没有提供任何支持此源代码的支持bean代码,因此我在panelMenu.java中创建了这些方法
public void updateCurrent(String n) {
logger.info("updateCurrent called with " + n);
setCurrent(n);
}
public String getCurrent() {
return current;
}
public void setCurrent(String c) {
curr
当我在Androäd上部署一个war on jetty应用程序时,我得到了这样的消息:
HTTP ERROR 500
Problem accessing /index.jsp.
Reason:
JSP support not configured
如何在Andro JSP上配置Jetty应用程序以接受JSP?
在测试某人的代码时,我注意到有几个JSP页面打印了一些时髦的非ASCII字符。查看一下源代码,我发现了这个花边新闻:
// remove any periods from first name e.g. Mr. John --> Mr John
firstName = firstName.trim().replace('.','\0');
用空字符替换字符串中的字符在Java中还能工作吗?我知道'\0'会终止一个C字串。这会是时髦人物的罪魁祸首吗?
我在web -INF下的网页下添加了这个shir.ini:
[main]
# Objects and their properties are defined here,
# Such as the securityManager, Realms and anything
# else needed to build the SecurityManager
shiro.loginUrl = /index.jsp
[users]
root = 12345,admin
guest = 12345,guest
[roles]
admin = *
[urls]
/index.xhtml