IntelliJ idea: Providing JSTL support for Web applications

Source: Internet
Author: User

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:

    1. IntelliJ idea is not always reliable. Sometimes the error can also try to run a bit
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.