当前位置: 移动技术网 > IT编程>开发语言>Java > 通用JSP页面 jsp入门级文章

通用JSP页面 jsp入门级文章

2017年12月12日  | 移动技术网IT编程  | 我要评论

教育培训论坛,双色球5亿大奖,call you bae

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>

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网