博客
关于我
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/

你可能感兴趣的文章
PostgreSQL配置文件--日志和错误
查看>>
PostgreSQL配置文件--资源使用(除WAL外)
查看>>
PostgreSQL(一)教程 -----从头开始
查看>>
PostgresSQL查询数据中用逗号隔开的数据以及@>与<@的区别
查看>>
PostGresSQL简介与Windows上的安装教程
查看>>
Postgres用returning实现mysql的last_insert_id
查看>>
postgres访问认证配置文件pg_hba.conf
查看>>
Postgres间隔大量写IO的解决办法
查看>>
Posting JSON to Spring MVC Controller
查看>>
Qt开发——可隐藏的对话框
查看>>
Qt开发——QWebEngineView简易网络浏览器(二)
查看>>
Postman List类型传参方法
查看>>
Qt开发——QWebEngineView浏览器开发
查看>>
Qt开发——QThread多线程初探
查看>>
Postman —— 实现接口自动化测试!
查看>>
Qt开发——QStackedWidget嵌入式窗体切换
查看>>
Qt开发——QSplashScreen程序启动图
查看>>
Postman 内置的动态变量
查看>>
Qt开发——QProgressBar/QProgressDialog进度条
查看>>