The function getUserId must be used with a prefix when a default namespace is not specified 解决办法

The function getUserId must be used with a prefix when a default namespace is not specified

解决方法:

1、在正则表达式中${}调用不能调用方法,即不可以这样${oauser.getUserId()} ${u.getPostcode()}而是要这样${oauser.userId}要省略括号和get,也就是直接用模型里面的属性就可以了,才能正确运行

2、如果将含有此等标签的项目部署在tomcat6.0下就会出现这样的异常问题,只是因为tomcat6.0不予支持运行。所有部署到tomcat7.0下就可以运行正常。

原文地址:https://www.cnblogs.com/gxbk629/p/4841230.html