⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rel_json.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<%@ page pageEncoding="GBK"%>
<%@ page contentType="text/xml; charset=gbk" language="java"%>
<%@ page language="java" import="java.io.PrintWriter"%>
<%@ page import="java.util.*"%>
<%@ page import="com.saas.biz.commen.ListConvertToJSON"%>
<%@ page import="com.saas.biz.relationccMgr.RelationCcInfo"%>
<%
	PrintWriter xmlout = response.getWriter();
	RelationCcInfo store = new RelationCcInfo();
	int start = 0;
	if (request.getParameter("start") != null) {
		start = Integer.parseInt(request.getParameter("start"));
	}
	HttpSession logsession = request.getSession();
	String cust_id = "";
	if (logsession.getAttribute("SESSION_CUST_ID") != null) {
		cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
	}
	ArrayList relationList = store.getRelationJSONByType(start, 20, cust_id, "1");
	int counter = store.getPateSizeByType(cust_id,"1");
	String json = ListConvertToJSON.getJSONByList(relationList, counter);
	try {
		xmlout.write(json);
	}
	catch (Exception e) {
		e.printStackTrace();
	}
	finally {
		xmlout.flush();
		xmlout.close();
	}
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -