1 Star 0 Fork 28

gisinaction/discoverx2-webapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
opiniontypes.jsp 777 Bytes
一键复制 编辑 原始数据 按行查看 历史
腾硕软件 提交于 2015-04-03 00:21 +08:00 . 初始提交
<%@page contentType="text/javascript;charset=GBK" language="java"%>
<%@page import="com.tansuosoft.discoverx.web.JSPContext" %>
<%@page import="com.tansuosoft.discoverx.bll.resource.XmlResourceLister,java.util.List,com.tansuosoft.discoverx.model.Resource,com.tansuosoft.discoverx.model.OpinionType"%>
<%
JSPContext jspContext=new JSPContext(pageContext);
jspContext.setNoCache();
List<Resource> list=XmlResourceLister.getResources(OpinionType.class);
StringBuilder sb=new StringBuilder();
if(list==null){sb.append("{error:true,status:-1,message:'系统没有定义任何意见类型!'}");}
else{
for(Resource r:list){
if(r==null)continue;
if(sb.length()>0)sb.append(",");
sb.append("'").append(r.getName()).append("'");
}
sb.insert(0,"[");
sb.append("]");
}
%><%=sb.toString()%>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/springjava/discoverx2-webapp.git
git@gitee.com:springjava/discoverx2-webapp.git
springjava
discoverx2-webapp
discoverx2-webapp
master

搜索帮助