I’m trying to interate a struts 1.3.8 app with jcaptcha-1.0; I added the jcaptcha jar to the app lib and added
<%@ taglib uri="jcaptcha" prefix="jcaptcha"%>
to my form
The app couldn’t find the file, so I added the following to the web.xml file
<taglib-uri>jcaptcha</taglib-uri>
<taglib-location>/WEB-INF/lib/jcaptcha-1.0-all.jar</taglib-location>
</taglib>
And now I get the null pointer exception:
org.apache.jasper.JasperException: Unable to read TLD "META-INF/taglib.tld" from JAR file
Any clues ? Recommendations about otther captchas that work with struts are welcomed.
Thanks
Try
<%@ taglib uri="http://jcaptcha.sourceforge.net" prefix="jcaptcha" %>If that fails, try
<%@ taglib uri="/WEB-INF/jcaptcha.tld" prefix="jcaptcha"%>and create thejcaptcha.tldfile inWEB-INFwith this content: