博客
关于我
JSP指令
阅读量:373 次
发布时间:2019-03-05

本文共 1182 字,大约阅读时间需要 3 分钟。

JSP ?? ??

1. ??

JSP ?? ????????? JSP ??????????????????????????????????????????????????????

2. ??

JSP ?????????

  • page ????????????
  • include ????????????
  • taglib ??????????????

Page ??

1. ??

<%@ page attribute1="value1" attribute2="value2" %>

page ????????????????????

2. ??

page ??????????????

  • language: ?????????
  • contentType: ?????????
  • pageEncoding: ?????????

3. ????

  • import: ??????
  • contentType: ??????????? text/html ? text/xml?
  • pageEncoding: ?????????? UTF-8?
  • session: ???????
  • errorPage: ???????

Include ??

1. ??

<%@ include file="filename" %>

include ?????????????

2. ??

include ???????????????????????????? .jsp?.html ? .java?

3. ??

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>    
Insert title here<%@ include file="head.jsp" %>

Body content

<%@ include file="end.jsp" %>

Taglib ??

1. ??

<%@ taglib uri="taglib-URI" prefix="prefixName" %>

taglib ?????????????

2. ??

taglib ???????????????????????????????????????

3. ??

<%@ taglib uri="/WEB-INF/tlds/mytags.tld" prefix="my" %>
  • uri: ??????????
  • prefix: ???????

????

  • page ???????????
  • include ? taglib ?????????
  • page ????????????????????????

?????? JSP ????????????????????????

转载地址:http://snvg.baihongyu.com/

你可能感兴趣的文章
python log
查看>>
python logging basicconfig_python之logging.basicConfig
查看>>
Python logging模块使用
查看>>
python logging模块学习
查看>>
python mac地址_python中MAC地址打包问题
查看>>
python manage.py syncdb Unknown command: 'syncdb'问题解决方法
查看>>
Python map() 函数 和 numpy mean()函数
查看>>
Python Matplotlib Box并排绘制两个数据集
查看>>
Python Matplotlib 中如何用 plt.savefig 存储图片
查看>>
Python matplotlib 中更换画布背景颜色
查看>>
Python进阶03 模块
查看>>
python matplotlib简单使用
查看>>
Python mock Patch os.environ 和返回值
查看>>
Python mock 修补另一个函数调用的函数
查看>>
python mqtt 客户端实现
查看>>
Python Multiprocessing - 将类方法应用于对象列表
查看>>
Python multiprocessing.Queue 与 multiprocessing.manager().Queue()
查看>>
Python multiprocessing使用详解
查看>>
python mysql 基于 sqlalvhrmy_Python操作MySQL:pymysql和SQLAlchemy
查看>>
python mysql 布尔类型_python语言的基础学习:基本类型,函数,面向对象,模块,mysql数据库...
查看>>