Got this message: "message" : "03230014 Wrapped Exception (with status template): 03230099 Error during processing of the template 'Expression demo is undefined on line 5, column 15 in simple.get.json.ftl.'. Please contact your system administrator.", "exception" : "org.springframework.extensions.webscripts.WebScriptException - 03230014 Wrapped Exception (with status template): 03230099 Error during processing of the template 'Expression demo is undefined on line 5, column 15 in simple.get.json.ftl.'. Please contact your system administrator.",
1. My Java class: import java.util.HashMap; import java.util.Map;
public class SimpleWebScript extends DeclarativeWebScript { @Override protected Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) {
// put all the objects that you need in renditions to the model map Map<String, Object> model = new HashMap<String, Object>(); model.put("demo", "Happy coding! "); System.out.println("hello1"); return model; } } 2. My bean descrption: web-scripts-application-context.xml <beans>