JCaptcha
I have to use JCaptcha in Java Struts.
I have added jcaptcha-all-1.0-RC2.0.1.jar and ehcache-1.0.jar in WEB-INF/lib folder. And in struts-config i have added this line in the bottom
<plug-in className="com.octo.captcha.module.struts.CaptchaServicePlugin"/>
and i have added jcaptcha code in jsp as
<tr>
<td> Please enter the letters as seen in the image below</td>
<tr>
<td align="left">
<img src="<%=request.getContextPath()%>/jcaptcha.do" />
</td>
</tr>
<tr>
<td>
<input type="text" name="jcaptcha_response" />
<font color="red"><jcaptcha:message /></font>
</td>
</tr>
</tr>
I have added a reference to the tld file on the top of jsp
<%@ taglib uri="/WEB-INF/jcaptcha.tld" prefix="jcaptcha"%>
I have added a action path entry in struts-config.xml as
<action path="/jcaptcha"
type="com.octo.captcha.module.struts.image.RenderImageCaptchaAction"/>
i have added a jcaptcha.tld in WEB-INF. And make an entry in web.xml as
<taglib>
<taglib-uri>/WEB-INF/jcaptcha.tld</taglib-uri>
<taglib-location>/WEB-INF/jcaptcha.tld</taglib-location>
</taglib>
Still image are not displaying. I donno what to do. All the links are telling to do so that i have already done. Can anyone please guide me.
Thanks in advance
Vivek Kumar Gupta