没有合适的资源?快使用搜索试试~ 我知道了~
JSP_cheatsheet jsp 小抄
需积分: 0 5 下载量 187 浏览量
2008-10-19
14:48:54
上传
评论
收藏 72KB PDF 举报
温馨提示
试读
2页
JSP_cheatsheet.pdf,一个jsp的小抄,,方面我们查看使用其相关语法和使用。
资源详情
资源评论
资源推荐
Element Description JSP Syntax
Legend All tags are case sensitive. A pair of single quotes is equivalent to a pair of double quotes.
Spaces are not allowed between an equals sign and an attribute value.
plain text = required bold = default italics = user-defined | = or
[ ] = optional { } = required choice ... = list of items + = can repeat
HTML Comment
Creates a comment that is sent to the
client in the viewable page source.
<!-- comment [ <%= expression %> ] -->
Hidden Comment
Documents the JSP file, but is not sent to
the client.
<%-- comment --%>
Declaration
Declares variables or methods valid in
the page scripting language.
<%! declaration; [ declaration; ]+ ... %>
Expression
Contains an expression valid in the page
scripting language.
<%= expression %>
Scriptlet
Contains a code fragment valid in the
page scripting language.
<% code fragment of one or more lines %>
Include Directive
Includes a static file, parsing the file’s
JSP elements.
<%@ include file="relativeURL"%>
Page Directive
Defines attributes that apply to an entire
JSP page.
<%@ page [ language="java" ] [ extends="package.class" ] [ import="{package.class | package.*} , ... " ]
[ session="true|false" ] [ buffer="none|8kb|sizekb" ] [ autoFlush="true|false" ]
[ isThreadSafe="true|false" ] [ info="text" ] [ errorPage="relativeURL"]
[ contentType="{mimeType [ ; charset=characterSet ]|text/html ; charset=ISO-8859-1}" ]
[ isErrorPage="true|false"] %>
Taglib Directive
Defines a tag library and prefix for the
custom tags used in the JSP page.
<%@ taglib uri="URIToTagLibrary" prefix="tagPrefix"%>
custom tag:
<tagPrefix:name attribute="value"+ ... />
<tagPrefix:name attribute="value"+ ... > other tags </tagPrefix:name>
JAVASERVER PAGES™ (JSP) SYNTAX
JSP 1.1 BETA
More information:
http://java.sun.com/products/jsp/
amgang
- 粉丝: 3
- 资源: 38
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0