Hi Stephen,
The spring.tld is in the spring.jar so you dont need to do any more
than grab the spring as a dependancy, like this..
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>1.2.8</version>
<scope>compile</scope>
</dependency>
With the scope set to compile the spring.jar will be bundled into the war file.
Add the flowing line to the top of your jsp pages..
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
You dont need to declare anything in your web.xml.
hope this helps
Ben
On 10/18/06, Stephen Bobick <[EMAIL PROTECTED]> wrote:
Hi,
I've added a dependency to Spring 1.2.8 in my project's POM file. When I try
to use the spring.tld tag libs (add the declaration to the web.xml as well as
the taglib reference to the JSP page), I get an error message:
org.apache.jasper.JasperException: File "/WEB-INF/spring.tld" not found
My question is this: do I need to copy spring.tld manually into my WEB-INF
directory, or can I import this through Maven's dependency mechanism and link
to it somehow in the web.xml?
<jsp-config>
<taglib>
<taglib-uri>http://www.springframework.org/tags</taglib-uri>
<taglib-location>/WEB-INF/spring.tld</taglib-location>
</taglib>
</jsp-config>
Thanks in advance,
Stephen J. Bobick
Senior Lead Engineer, Life Sciences
Insightful Corporation
(206) 802-2350 Direct
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]