What Is an Input Tag?
In order to really implement that the JSP file does not contain any scriptlet code, you also need to solve it through tags. Tags are divided into custom tags and common tags provided by open source tools.
- Even in
- Using a tag library can avoid too much Scriptlet code, but if you use a custom tag library approach, it will be very tedious and not universal, so in development, you will usually use some open source tools to use some public tags, JSTI. Is a widely used universal label.
JSTL (JSP Standard Tag Library, JSP Standard Tag Library) is an open source tag component, developed by the Jakarta team of Apaceh, which can be directly from http: // tomcat. apache. Download at org / taglibs /. JSTL 1.2 mainly includes the following
- The downloaded JSTL is in the form of a jar package. Save this jar package directly in the Web-INF \ lib directory. After that, you can directly open this jar package through WinRAR tool, and save several files in the META-INF folder. The main tag configuration files (c.tld, {mt.tld, fn.tld, sql.tld, X.tld) are stored in the Web-INF folder as shown below.
- JSTI. There are 13 core tag library tags, which can be divided into 4 categories from the function: expression control tags, process control tags, loop tags, Url operation tags. Using these tags can complete the basic functions of JSP pages and reduce coding work. [1]