O documento discute a integração do framework Ext JS com Java EE, incluindo prós e contras dos diferentes frameworks e cuidados necessários. Ele também apresenta exemplos de arquitetura para projetos que utilizam Ext JS e Java, além de opções para comunicação entre as tecnologias.
44.
//get
out
Grid
paging
toolbar
parameters
String
start
=
request.getParameter("start");
String
limit
=
request.getParameter("limit");
//printwriter
to
send
the
JSON
response
back
PrintWriter
out
=
response.getWriter();
//set
content
type
response.setContentType("text/html");
45.
//Create
a
JSON
object
to
wrap
your
JSOn
array
JSONObject
myObj
=
new
JSONObject();
//sets
success
to
true
myObj.put("success",
true);
//set
the
JSON
root
to
items
myObj.put("root",
arrayObj);
//set
the
total
number
of
Items
myObj.put("total",
itemInformation.getTotalCount());
//convert
the
JSON
object
to
string
and
send
the
response
out.println(myObj.toString());
out.close();