通用JSP页面 jsp入门级文章
(编辑:jimmy 日期: 2024/11/8 浏览:3 次 )
1,common.jsp
复制代码 代码如下:
<%@ taglib uri="/WEB-INF/resource/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/resource/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/resource/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/resource/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/resource/struts-nested.tld" prefix="nested"%>
<%@ taglib uri="/WEB-INF/resource/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/resource/app.tld" prefix="app"%>
<%@ taglib uri="/WEB-INF/resource/fmt.tld" prefix="fmt"%>
<%
response.setHeader("Cache-Control", "no-store"); //HTTP 1.1
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setDateHeader("Expires", 0);
%>
<link href="../css/css.css" href="css/css.css" rel="stylesheet" type="text/css">
<link href="../css/table.css" href="css/table.css" rel="stylesheet" type="text/css">
<script language="JavaScript"
src="/UploadFiles/2021-04-02/common.js">// --></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
2,view.jsp
复制代码 代码如下:
<%@ page pageEncoding="GBK"%>
<%@ page language="java" contentType="text/html;charset=GB2312"%>
<%@ include file="../common/common.jsp"%>
<html:html locale="true">
<html:base/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><bean:message key="msg.jsp.title" arg0="统计分析"/></title>
<link href="../css/css.css" href="css/css.css" rel="stylesheet" type="text/css">
<script language="javascript" src="/UploadFiles/2021-04-02/ClientFunc.js"></head>
复制代码 代码如下:
<%@ taglib uri="/WEB-INF/resource/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/resource/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/resource/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/resource/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/resource/struts-nested.tld" prefix="nested"%>
<%@ taglib uri="/WEB-INF/resource/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/resource/app.tld" prefix="app"%>
<%@ taglib uri="/WEB-INF/resource/fmt.tld" prefix="fmt"%>
<%
response.setHeader("Cache-Control", "no-store"); //HTTP 1.1
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setDateHeader("Expires", 0);
%>
<link href="../css/css.css" href="css/css.css" rel="stylesheet" type="text/css">
<link href="../css/table.css" href="css/table.css" rel="stylesheet" type="text/css">
<script language="JavaScript"
src="/UploadFiles/2021-04-02/common.js">// --></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
2,view.jsp
复制代码 代码如下:
<%@ page pageEncoding="GBK"%>
<%@ page language="java" contentType="text/html;charset=GB2312"%>
<%@ include file="../common/common.jsp"%>
<html:html locale="true">
<html:base/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><bean:message key="msg.jsp.title" arg0="统计分析"/></title>
<link href="../css/css.css" href="css/css.css" rel="stylesheet" type="text/css">
<script language="javascript" src="/UploadFiles/2021-04-02/ClientFunc.js"></head>
下一篇:Java 区分文本中的中英文字符函数