CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛
CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛
CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛

通用JSP页面 jsp入门级文章

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=”https://www.home1024.com/css/css.css” href=”https://www.home1024.com/article/css/css.css” rel=”stylesheet” type=”text/css”>
<link href=”https://www.home1024.com/css/table.css” href=”https://www.home1024.com/article/css/table.css” rel=”stylesheet” type=”text/css”>
<script language=”JavaScript”
src=”https://www.home1024.com/article/<%=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=”https://www.home1024.com/css/css.css” href=”https://www.home1024.com/article/css/css.css” rel=”stylesheet” type=”text/css”>
<script language=”javascript” src=”https://www.home1024.com/js/ClientFunc.js” src=”https://www.home1024.com/article/js/ClientFunc.js”></script>
</head>

以上就是【通用JSP页面 jsp入门级文章】的全部内容了,欢迎留言评论进行交流!

© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容