skip to Main Content

Using FieldMethodizer to access static files prints "Could not add x for field methodizing: x" – Apache

When I try to use velocity's FieldMethodizer variable in my template it prints error. I'm using SparkJava framework and velocity template engine. public static String render(Map<String, Object> model, String templatePath) { model.put("WebPath", new FieldMethodizer("Path.Web")); return strictVelocityEngine().render(new ModelAndView(model, templatePath)); } private…

VIEW QUESTION
Back To Top
Search