Why file "web.xml" has useless <taglib>
?
Now I use tomcat 7 and surprisingly finding out I can use taglib
in web.xml
,but when I finally know what it means,I really think it useless.
I want tomcat design in this way,if I configure taglib in web.xml then I don't have to configure taglib
in jsp file,on the contrary,if I configure taglib
in jsp file then I don't have to configure taglib
in web.xml.
Asked
Active
Viewed 33 times
-2
-
1@Stefan That should probably be an answer and not just a comment... just add some references. – Christopher Schultz Jul 14 '16 at 13:10
1 Answers
1
You dont need to configure custom taglibs in web.xml anymore, its just for legacy support. Taglibs will be scanned when the server starts, so you only need to define them in your JSP.

Stefan
- 12,108
- 5
- 47
- 66