How to return raw response from JavaLite.io activeweb controller

28 views Asked by At

It is possible to return raw response from JavaLite.io Activeweb controller without chaining it with embedded FreeMarker template engine ?

1

There are 1 answers

0
ipolevoy On

yes, this is easy:

public void index() {
   respond("{\"success\":true}").contentType("application/json").statusCode(200);
}

In other words, the method respond() will do exactly what you need.