1 Star 0 Fork 28

gisinaction/discoverx2-webapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
resourcexml.jsp 777 Bytes
一键复制 编辑 原始数据 按行查看 历史
腾硕软件 提交于 2015-04-03 00:21 +08:00 . 初始提交
<%@page contentType="text/xml;charset=GBK" language="java"%>
<%@page import="com.tansuosoft.discoverx.model.*"%>
<%@page import="com.tansuosoft.discoverx.util.serialization.*"%>
<%@page import="java.io.*"%>
<%
com.tansuosoft.discoverx.web.JSPContext jspContext=new com.tansuosoft.discoverx.web.JSPContext(pageContext);
jspContext.setNoCache();
Resource resource=new User();//ResourceContext.getInstance().getResource("","");
Serializer ser = new XmlSerializer();
StringWriter writer = new StringWriter();
ser.serialize(resource, writer);
out.clear();
out.write("<?xml version=\"1.0\" encoding=\"gbk\"?>\r\n");
out.write("<resource type=\"");
out.write(resource.getClass().getName());
out.write("\">\r\n");
out.write(writer.toString());
out.write("</resource>");
out.flush();
%>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/springjava/discoverx2-webapp.git
git@gitee.com:springjava/discoverx2-webapp.git
springjava
discoverx2-webapp
discoverx2-webapp
master

搜索帮助