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

📄 main.jsp

📁 JSP购物车(SQLserver版) ================== 简单的JSP电子商务网站购物车 带结算功能,带注册系统 大二时自己编写的,供大家参考学习 功能不是很详尽,美工
💻 JSP
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../inc/common.jsp" %><%@ page import="com.yeqiangwei.club.cache.*" %><!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>
<title>${basic.name}后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<club:html type="css" />
<script type="text/javascript" src="../scripts/common.js"></script>
</head>
<body>
<%@ include file="../inc/nav.jsp" %>
<div class="sidebar">
<div style="padding:10px;">
<h2 class="strong blue">JAVA内存信息</h2>
totalMemory: <%=Runtime.getRuntime().totalMemory()/1024/1024%>(M)
<br>
freeMemory: <%=Runtime.getRuntime().freeMemory()/1024/1024%>(M)
</div>
</div>
<div class="sidebar">
<div style="padding:10px; word-break:break-all;">
<h2 class="strong blue">持久缓存信息</h2><%
CacheProvider cpv = new com.yeqiangwei.club.cache.singleton.YQWcache();
CacheProvider provider = CacheWrapper.getCacheProvider();
String act = ParamUtils.getStringParameter(request,"act",null);
if(act!=null){
	if(act.equals("clear_s")){
		Cache cache = cpv.getCache(ParamUtils.getStringParameter(request,"name",null));
		if(cache!=null){
			cache.clear();
		}
	}else{
		Cache cache = provider.getCache(ParamUtils.getStringParameter(request,"name",null));
		if(cache!=null){
			cache.clear();
		}
	}
}
String snames[] = cpv.getCacheNames();
if(snames!=null&&snames.length>0){
	for(int i=0; i<snames.length; i++){
		out.print("<font class=\"blue\"><a href=\"main.jsp?name="+snames[i]+"&act=clear_s\">"+snames[i]+"</a></font>&nbsp;&nbsp;&nbsp;");
	}
}
%></div>
</div>
<div class="sidebar">
<div style="padding:10px;">
<h2 class="strong blue">系统缓存信息</h2><%

String names[] = provider.getCacheNames();
if(names!=null&&names.length>0){
	for(int i=0; i<names.length; i++){
		Cache cache = provider.getCache(names[i]);
		out.print("<font class=\"blue\"><a href=\"main.jsp?name="+names[i]+"&act=clear\">"+names[i]+"</a></font>");
		out.print(" memoryStoreSize: "+cache.getMemoryStoreSize()+" ");
		out.print(" diskStoreSize: "+cache.getDiskStoreSize()+" ");
		out.print(cache.toString());
		out.print("<br/>========================================<br/>");

	}
}
%>
</div>
</div>
<div class="empty"></div>
<div id="footer"><c:out value="${basic.copyright}" escapeXml="false"/></div>
<div id="version">YeQiangWei&nbsp;Club&nbsp;<c:out value="${basic.version}" /></div>
<div class="empty" style="text-align:center"><a href="http://www.YeQiangWei.com" target="_blank"><img src="/club/images/icon.gif" alt="YeQiangWei Club" align="absmiddle"/></a></div>
<script type="text/javascript">c.loading(0);</script>
</body>
</html>
<!-- Powered by www.YeQiangWei.com -->

⌨️ 快捷键说明

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