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>
    
  • 相关阅读:
    HDU 1874 畅通工程续(dijkstra)
    HDU 2112 HDU Today (map函数,dijkstra最短路径)
    HDU 2680 Choose the best route(dijkstra)
    HDU 2066 一个人的旅行(最短路径,dijkstra)
    关于测评机,编译器,我有些话想说
    测评机的优化问题 时间控制
    CF Round410 D. Mike and distribution
    数字三角形2 (取模)
    CF Round410 C. Mike and gcd problem
    CF Round 423 D. High Load 星图(最优最简构建)
  • 原文地址:https://www.cnblogs.com/asoks/p/5414791.html
Copyright © 2011-2022 走看看