zoukankan      html  css  js  c++  java
  • iframe+json

    import com.alibaba.fastjson.JSONObject;
    import com.alibaba.fastjson.serializer.PropertyFilter;
    import com.alibaba.fastjson.serializer.SerializerFeature;
    
    		Map<String,Object> map=new HashMap<String, Object>();
    		map.put("total", maxrow);
    		map.put("rows", lsus);
    		
    		//过滤子表的实体集合属性
    		PropertyFilter propertyFilter=new PropertyFilter() {
    			
    			public boolean apply(Object arg0, String pname, Object arg2) {
    				if(pname.equals("emails")){
    					return false;
    				}
    				if(pname.equals("holidaies")){
    					return false;
    				}
    				return true;
    			}
    		};
    		
    		//转为json字符串
    		String jsonstr=JSONObject.toJSONString(map,propertyFilter,SerializerFeature.DisableCircularReferenceDetect);
    
    <%@ page contentType="text/html; charset=utf-8" language="java" import="java.util.*" pageEncoding="utf-8" errorPage="" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <c:if test="${newus==null }">
    	<c:redirect url="dologin.jsp"></c:redirect>
    </c:if>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="css/style.css" />
    <title>超市账单管理系统</title>
    </head>
    <frameset rows="100,*" cols="*" frameborder="no" border="0" framespacing="0">
    	<frame src="admin_top.jsp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" />
    	<frameset cols="200,*" frameborder="no" border="0" framespacing="0">
    		<frame src="admin_left.jsp" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" />
    		<frame src="admin_bill_list.jsp" name="mainFrame" id="mainFrame" />
    	</frameset>
    </frameset>
    <noframes><body>
    </body></noframes>
    </html>
    
    <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <c:if test="${newus==null }">
    	<c:redirect url="dologin.jsp"></c:redirect>
    </c:if>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link type="text/css" rel="stylesheet" href="css/style.css" />
    </head>
    <body>
    <div id="header">
    	<div class="title"></div>
    	<div class="welcome">欢迎您:${newus.u_name }</div>
    </div>
    </body>
    </html>
    
    <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <c:if test="${newus==null }">
    	<c:redirect url="dologin.jsp"></c:redirect>
    </c:if>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link type="text/css" rel="stylesheet" href="css/style.css" />
    </head>
    <body class="frame-bd">
    <ul class="left-menu">
    	<li><a href="servlet/OrdersServlet?op=5" target="mainFrame"><img src="images/btn_bill.gif" /></a></li>
    	<c:if test="${newus.u_level==1 }">
    	<li><a href="providerAdmin.jsp" target="mainFrame"><img src="images/btn_suppliers.gif" /></a></li>
    	</c:if>
    	<li><a href="userAdmin.jsp" target="mainFrame"><img src="images/btn_users.gif" /></a></li>
    	<li><a href="logout.jsp" target="_parent"><img src="images/btn_exit.gif" /></a></li>
    </ul>
    </body>
    </html>
    
  • 相关阅读:
    《Spring_Four》第二次作业 基于Jsoup的大学生考试信息展示系统开题报告
    《Spring_Four》第一次作业:团队亮相
    4.11jsp
    4.7jsp
    3.17jsp
    3.24jsp
    3.10jsp
    3.4软件测试
    回文串
    博客园第二次作业
  • 原文地址:https://www.cnblogs.com/asoks/p/5414791.html
Copyright © 2011-2022 走看看