Note that there are some explanatory texts on larger screens.

plurals
  1. PORefresh SimpleCaptcha
    text
    copied!<p>I'm using <a href="http://simplecaptcha.sourceforge.net/" rel="nofollow noreferrer">SimpleCaptcha</a></p> <p>My web.xml looks like the one <a href="http://simplecaptcha.sourceforge.net/installing.html" rel="nofollow noreferrer">here</a>:</p> <pre><code>&lt;servlet&gt; &lt;servlet-name&gt;StickyCaptcha&lt;/servlet-name&gt; &lt;servlet-class&gt;nl.captcha.servlet.StickyCaptchaServlet&lt;/servlet-class&gt; &lt;init-param&gt; &lt;param-name&gt;width&lt;/param-name&gt; &lt;param-value&gt;250&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;height&lt;/param-name&gt; &lt;param-value&gt;75&lt;/param-value&gt; &lt;/init-param&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;StickyCaptcha&lt;/servlet-name&gt; &lt;url-pattern&gt;/captcha&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>And i added a refresh but to my view like described in <a href="https://stackoverflow.com/questions/10151920/refresh-simple-captcha">this SO-answer</a>:</p> <pre><code>&lt;script type="text/javascript"&gt; function reloadCaptcha(){ var d = new Date(); $("#captcha_image").attr("src", "/captcha?"+d.getTime()); } &lt;/script&gt; ... &lt;img id="captcha_image" src="/captcha_generator.jsp" alt="captcha image" width="200" height="50"/&gt; &lt;img src="reload.jpg" onclick="reloadCaptcha()" alt="reload"width="40" height="40"/&gt; </code></pre> <p>But when i press the refresh button, nothing happens. Also when i try to call <code>.../captcha?4324321</code> it still prints the same captcha (based on the user session as i understood it)</p> <p>I'm also using spring-mvc and spring-webflow.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload