Jsp and jsp tutorials
Dynamic Website advantages:
1. Interactivity: The webpage dynamically changes and displays content based on user requirements and choices.
2. Automatic update: The page content is automatically generated without changing the Page code, which can greatly save the workload.
3. Randomness: when different users access the same website at different times, different page effects may occur.
Directory |
Description |
/Bin |
Stores script files used to start and stop Tomcat on various platforms |
/Conf |
Stores various configuration files of the Tomcat server |
/Lib |
Store various JAR files required by the Tomcat server |
/Logs |
Store Tomcat log files |
/Temp |
Used to store temporary files during Tomcat running |
/Webapps |
When a Web application is published, the Web application files are stored in this directory by default. |
/Work |
Tomcat stores the Servlet generated by JSP in this directory |
Directory |
Description |
/ |
The root directory of the Web application. All files under this directory can be accessed on the client (JSP, HTML, etc) |
WEB-INF |
Stores various resources used by the application. The directory and its sub-directories are inaccessible to the client. |
/WEB-INF/classes |
Store all the class files of the Web Project |
/Web-INF/lib |
Store JAR files used by Web Applications |
Syntax
Jsp comments
<! -- Remember to go back to 1111111 '11' 1 without development -->
<% -- Gillian's full health 1 -->
<% // Scatter %>
Attribute |
Description |
Default Value |
Language |
Script Language used for JSP pages |
Java |
Import |
This attribute is used to reference the class files used in the script language. |
None |
ContentType |
Specifies the encoding method used for JSP pages. |
Text/html, ISO-8859-1 |
Syntax