Thursday, August 14, 2008

Using Kaptcha in JSP page within WEB-INF folder

Since our JSP page in inside WEB-INF folder, we need to give path starting from the context path.

in JSP page

instead of <img=kaptcha/>

place

<img=<%request.getContextPath()%>/kaptcha/>

1 comment:

  1. use ${pageContext.request.contextPath}/kaptcha if you don't want to insert scriptlet in your jsp.

    ReplyDelete