Search code examples
javastruts2strutsstruts-tags

where to put struts-core2.x.x.jar? (in WEB-INF/lib or jboss shared lib)


where to put struts-core2.x.x.jar? (in WEB-INF/lib or jboss shared lib)

When I'm trying to use struts tag in jsp, I'm getting an error as /struts-tag can not be located.

I've kept all the jars in jboss shared lib folder. In my project configuration, I'm not allowed to put the jars in WEB-INF/lib location.

What should I do?


Solution

  • This is the same problem you encounter creating skinny WARS (and then putting the libraries elsewhere, in my case in the EAR).

    The solution I found was to:

    1. extract TLDs from JARs,
    2. put a copy on WEB-INF/lib
    3. reference them in the page like this:

      <%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld" %>