PDA

View Full Version : Spring Tag Library Setup... ???


GenghisHahn
Apr 29th, 2006, 10:39 AM
Ok, I tried referencing the Spring tag library directly to the springframework.org URI. All the examples I've seen reference http://www.springframework.org/tags as the URI, but I get an error on my server saying that it is broken. Why is this? When I hit it directly in my browser it says 'page not found' ..


Ok, I figured I can just put the .tld in my WEB-INF directory instead. I do this, but when I go to change my web.xml to reference it, it just tells me that 'invalid content was found with element 'taglib' ''.... what gives? Shouldn't this pick it up? Or am I missing something? I know this is probably some stupid thing that I'm totally missing. My XSD schema location is refering to xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" (no taglib is defined)

I'm using WebSphere 6 with JDK 1.4

?????


Thanks

EndlessWinter
May 2nd, 2006, 05:22 AM
How do you use 'taglib' element in your web.xml?
It should look like

<taglib>
<taglib-uri>SOME URI</taglib-uri>
<taglib-location>/WEB-INF/some.tld</taglib-location>
</taglib>