Jsp action tag
Jsp action tag
Action tags are special tags that affect the functions of JSP runtime.
1. include action labels
Or
This action tag tells the JSP page to dynamically include a file, that is, adding the file to the JSP page during running. Unlike the include command label for static Insert Files, when the JSP Engine translates JSP pages into Java files, instead of combining the file included in the action instruction include on the JSP page with the original JSP page into a new JSP page, the Java interpreter is told, this file is included only when it is running in JSP (the Java file's bytecode file is loaded and executed. If the file contains a common text file, the file content is sent to the client, which is displayed by the client. If the question is a JSP file, the JSP Engine executes the file and sends the execution result to the client. The client is responsible for displaying the result.
The following program contains two files: image.html and hello.txt, and 64.jpg. We put these three files under the Tomcat Root file.
Hello.txt includes:
I am a student, I major in computer science and technology.
Image.html is as follows:
Image. jsp is a test file.
<% @ Page contentType = "text/html; charset = GB2312" %>File to be loaded:
Loaded image:
Running effect: