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下就可以运行正常。

相关文章:

  • 2021-11-05
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2021-12-01
  • 2022-02-15
  • 2022-02-04
猜你喜欢
  • 2022-12-23
  • 2021-12-17
  • 2021-08-08
  • 2022-12-23
  • 2021-11-29
  • 2021-12-16
相关资源
相似解决方案