Tomcat, servlet, JSP, and JSTL of IT ninja turtles Support corresponding tables and tomcatjstl
Tomcat version |
Servlet version |
Jsp version |
Jstl version |
6.0.x |
2.5 |
2.1 |
1.2, 1.1.x |
5.5.x |
2.4 |
2.0 |
1.1.x |
5.0.x |
2.4 |
2.0 |
1.1 |
4.1.x |
2.3 |
1.2 |
1.0 |
3.3.x |
2.2 |
1.1 |
|
Description of jar packages corresponding to jstl:
(1) JSTL1.0 (contains two jar files: jstl. jar and standard. jar. Both jar files exist in the Standard1.0.x release .)
: Http://archive.apache.org/dist/jakarta/taglibs/standard-1.0/binaries/
(2) JSTL1.1 (also contains two jar files: jstl. jar and standard. jar. Both jar files exist in the Standard1.1.x release .)
: Http://archive.apache.org/dist/jakarta/taglibs/standard-1.0/binaries/
(3) JSTL1.2 (also contains 2 jar files: jstl-api-1.2.jar and jstl-impl-1.2.jar)
: Http://jstl.java.net/
URL:
Http://archive.apache.org/dist
Use JSTL to pass values to Servlet on the JSP page
First, make sure that you want to pass that value into the servlet. Then, make sure that the page is submitted to the servlet and check whether the value you want to submit is included in <form>, only the values contained in the form can be normally received by the servlet. You can try to write the set in the form. If your parameter is passed in the url, then write it directly behind the url? Id = "$ {srorage. id. No need to use the set statement !~ Use request. getparameter ("id"); To receive the request. getparameter ("id !~
To use MyEclipse to practice JSTL, you must comply with the Tomcat5 JSP20/Servlet24/JSTL11 version.
Yes. You need to introduce jstl. jar. Generally, when MyEclipse creates a Web project, it will prompt you to select jstl1.0 or 1.1. Generally, Version 1.1 is used. In addition, Versions later than MyEclipse5.5 will at least contain tomcat5.5, servlet2.4 can be set as long as it is J2EE1.4 or above.