Ejemplo n.º 1
0
 public ActionForward tpl_findByGroupId(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response)
     throws Exception {
   PrintWriter out = response.getWriter();
   try {
     Long id = Long.parseLong(request.getParameter("id"));
     JSONArray array = JSONArray.fromObject(service.tpl_findByGroupId(id));
     out.println(array.toString());
   } catch (Exception e) {
     e.printStackTrace();
     Logger.getRootLogger().error(e.getMessage());
   } finally {
     out.close();
   }
   return null;
 }