-2

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.

piyushj
  • 1,546
  • 5
  • 21
  • 29
Sibling
  • 1
  • 2

1 Answers1

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