Recently looked at "Head first Servlet jsp" learning JSP, see Jstl Chapter, in order to add JSTL support toss a long time.
The tutorials on the web are varied and mostly old.
I tried a variety of methods are not successful, many times IntelliJ idea does not error, the Web program still can not run out.
Finally found that it is necessary to manually add the following 5 packages (of course, there can be other methods, such as Java EE inside the c.tld, MAVEN, etc.)
: http://tomcat.apache.org/download-taglibs.cgi
The final result is to run out in the case of IntelliJ idea error !
The method is particularly simple, which is to add the above 5 jar packages to web-inf/lib (without the Lib folder to create their own),
Web. XML does not need to be configured again, that is JSTL 1.2 previous talent thing!
Then you can use the various tags of jstl in the Web application.
How to use the label-reference: Jsp-standard tag Library (JSTL) Tutorial
To solve IntelliJ idea's cannot resolve symbol problem and get jstl tag completion function , add the above 5 packages to Dependencies It's good to go.
Perfect support!
Summary:
- IntelliJ idea is not always reliable. Sometimes the error can also try to run a bit
- Online Search more tutorial (tutorial), it is better to take a serious look at the official Readme
I found a similar tutorial 4 years ago when I finished writing.
IntelliJ idea: Providing JSTL support for Web applications