General JSP page JSP entry level article _jsp programming

Source: Internet
Author: User
Tags tld
1,common.jsp
Copy Code code as follows:

<%@ 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
Copy Code code as follows:

<%@ page pageencoding= "GBK"%>
<%@ page language= "java" contenttype= "text/html;charset=gb2312"%>
<%@ include file= ". /common/common.jsp "%>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title><bean:message key= "Msg.jsp.title" arg0= "statistical analysis"/></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>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.