I hope someone can advise. I’ve solved my issue, but I can’t help think I’ve done it in a somewhat perverted manner…
I’m knocking up my first Spring MVC app in MyEclipse (5.1.1 GA on WinXP). One of my JSPs needs to reference the Spring tag library. I read somewhere else on this forum about someone having issues with a taglib because they referenced said lib in their deployment descriptor, but didn’t need to, as the containing JAR was on their build path already, and the builders get confused…
Anyway, I have a bunch of Spring JARs on my build path (including Spring 1.2. Web Libraries), but the JSP editor was warning me about my Spring-specific tags (it couldn’t resolve them).
I tried all manner of things — even the “Add JSTL Libraries” wizard which tantalisingly showed me “spring.tld” in “Spring 1.2 Web Libraries” thus:
spring.tld - MYECLIPSE_SPRING_DATA_HOME/1.2/lib/spring.tld
… but didn’t allow me to add it to my project.
Finally, I gave up and downloaded the 1.2.8 Spring distribution. grabbing spring.tld from that and directly adding it to my WEB-INF directory.
I can’t help but feel that this isn’t right, that I’ve missed something: thoughts?