Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JCaptcha

807606May 7 2007
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2007
Added on May 7 2007
0 comments
148 views