2018-08-09 23:28
@受伤的蚂蚁 也就是将拼接后的 String 当成表达式再次求值,这个需要你做下指令扩展,例如扩展个 #eval 指令出来,或者试着做一个 shared method 扩展
#eval 指令比较好做,将里头的参数再次当成表达式求值即可
shared method 扩展需要获取到 Scope 对象中的值,需要使用一个 ThreadLocal 传递 Scope 过去,这个比较麻烦
2018-08-09 20:39
@andy.xue 参考 GET.java POST.java 中的代码,将其中的 renderError 改成 renderError(400, ...) 即可
2018-08-09 15:10
@lwcompany 你的 action 代码如下:
String index(Model model,HttpServletRequest request, HttpServletResponse response){
model.addAttribute(, UserUtils.());
String theme = getTheme(request);
+theme;
}
而 jfinal 的 action 是不可能有这两个参数的 HttpServletRequest request, HttpServletResponse response ,肯定与 jfinal action 无关了
2018-08-09 10:09
@kevin007 这个问题是在 eclipse 出现某个版本后突然出现的,jfinal 自身有关启动部分的代码很多年都没变过了,目前不知道原因,jfinal 3.5 会统一研究一下这个问题的原因