欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

通用JSP页面 jsp入门级文章

程序员文章站 2023-12-01 08:04:28
1,common.jsp 复制代码 代码如下:<%@ taglib uri="/web-inf/resource/struts-logic.tld" prefix="...
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="<%=request.getcontextpath()%><!--
/js/common/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="../js/clientfunc.js" src="js/clientfunc.js"></script>
</head>