- 注册时间
- 2013-5-30
- 最后登录
- 2013-6-3
- 阅读权限
- 10
- 积分
- 15
- 精华
- 0
- 帖子
- 4
|
factory 发表于 2013-5-31 17:04
看看AjaxService.jsp里面做的是什么,不光是这一个文件就够的。
另外,我们这个只是demo的后台,自己的项目 ...
问题是他在JSP里面都调不到,JSP里面有个输出语句都没有输出。。- public void SearchEmployees(HttpServletRequest request, HttpServletResponse response) throws Exception
- {
- System.out.print("AjaxService.jsp...");
- //查询条件
- String key = request.getParameter("key");
-
- //分页
- int pageIndex = Integer.parseInt(request.getParameter("pageIndex"));
- int pageSize = Integer.parseInt(request.getParameter("pageSize"));
- //字段排序
- String sortField = request.getParameter("sortField");
- String sortOrder = request.getParameter("sortOrder");
- DataObject criteria = DataObjectUtil.createDataObject("com.saip.sample.sample.SaipSampleHeaders");
- criteria.setString("textStr1", "1");
- DataObject pageCond = DataObjectUtil.createDataObject("com.eos.foundation.PageCond");
- pageCond.set("begin", 0);
- pageCond.set("length", 10);
- pageCond.set("isCount", true);
- DataObject[] result = new sampleJava().SearchEmployees();
- JSONSerializer serializer = new JSONSerializer();
- serializer.transform(new DateTransformer("yyyy-MM-dd'T'HH:mm:ss"), Date.class);
- serializer.transform(new DateTransformer("yyyy-MM-dd'T'HH:mm:ss"), Timestamp.class);
- String json = serializer.deepSerialize(result);
-
- response.getWriter().write(json);
-
- }
复制代码 |
|