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