jstl tag library can not find the problem using error index_jsp.java

Jstl beginner when I remember just talk about jstl and standard on the jar lib below, then use the corresponding jsp syntax can be used to import a tag library.

But then use the myeclipes, lead pack process myeclipes remember is: put the jar into the lib below, and then you can go build path.

Now the idea, idea packet syntax is introduced to add depencies project structure below

With the addition of the same package, web project using jstl on the error:

   

Then figure out what the problem is, Baidu:

      tld no idea plus inside

      tomcat version inconsistencies

      Tld file will not extract out of the WEB-INF below

      Jsp-config is not configured

Various versions, in order to test, or a variety of errors.

 

Finally, how to solve. Where knowledge comes from? Words and deeds, documents, books. So I find jstl the books and found the following passage:

 

Notes that it is tomcat's WEB-INF \ lib, and then go to tomcat, I found no such folder ah, only a lib.

Of course, you can also directly copied to the lib can be, but is not recommended, it is global.

 

Also remember we used to run tomcat web container running web projects using myeclipes it, when the re-configured project execution will generate a file in the corresponding folder under webapps tomcat, that our project compiled code in the tomcat folder corresponding to compile herein Fortunately, the use of feed, lib can be placed only under the WEB-INF project.

 

After corresponding configuration tomcat web project idea to run the compiler can not find the file in webapp, I do not know what the mechanism used, but observed under a log file in the user folder there and use the tomcat manage folders , now we know a question:

    WEB-INF jar in the lib / is used for tomcat

So before actually build path is the only guide package with myeclipes time. . . . . In addition to guiding idea to use package should also give support tomcat corresponding jar, then add the lib project in New 2jar, problem solving perfect

 

 

 

 

to sum up:

     Then know these know why, believe everything the book as no book, Baidu also!

 

Guess you like

Origin www.cnblogs.com/aigeileshei/p/11242872.html