Detailed explanation of JSP application syntax (1)

Source: Internet
Author: User
Tags html comment

1) HTML comment:
You can use comments or expressions.
2) Hide comments:
Comments will be ignored during JSP compilation. the compiler will not compile the statements between them and it will not be displayed in the client's browser and source code.

3) Statement:
Declare the variables and methods you will use in the JSP program. You can declare multiple variables and methods at a time. To end with ";", the declaration must be legal in Java.

4) expression:
The expressions in Java are displayed on the JSP page. Be sure not to include ";".

5) Java code:
Contains valid Java code.

6) include command:

It can contain HTML, JSP, text files, and Java code. It is important to note that this inclusion file cannot be used and sometimes leads to errors.
Attribute:
File indicates the relative path, for example, "error. jsp" "templates/onlinestore.html" "/beans/calendar. jsp"
If the path starts with "/", the path mainly refers to the upstream and downstream path of the JSP application. If the path starts with the file name or directory name, this path is the current path of the JSP file in use.

Read full text: http://www.javah.net/JSP_JSF/20070506/793.html

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.