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 best solutions below

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.