JSP Learning Notes 3

来源:互联网 发布:sql server 2005 版本 编辑:程序博客网 时间:2024/06/15 10:25

Compiler Commands

  1. Page
    -For defining the global properties of JSP file, generally, page compiler commands existing on the top of file.
    -language: set the script language type, default is java language.
    -contentType: mam type & code type for web
    -pageEncoding: for JSP code type

  2. import
    -import = "[package.class]" *NO “;”.
    -Use several page commands separately.
    -Also can use , separate the different packages.

  3. include
    -including a web file(html file, JSP file, or txt file) into a JSP file.
    -use <%@ include file="[htmlFileName].html"%> to include a html file.
    -<br/> is a new line character.
    -In both including file and being included file, same variable cannot be defined twice, <%!and %>for declaring variable. Because after including web file, it will be genereated as a one servlet file.

0 0
原创粉丝点击