简体   繁体   中英

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

where to put struts-core2.xxjar? (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?

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" %> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM