2
图像不显示为Grails simple-captcha
插件。 打印控制器空值时打印params.captcha。图像未在简体验证码中显示在Grails中
什么可能是解决方案?如果有人提到将simple-captcha
插件集成到Grails 2.3.3中,我会很感激。我的GSP页码是:
<g:form controller="user" action="register">
<g:textField name="email" placeholder="email"/><br>
<g:passwordField name="password" placeholder="password"/><br>
<img src="${createLink(controller: 'user', action: 'register')}"/>
<label for="captcha">Type the letters above in the box below:</label>
<g:textField name="captcha"/>
<g:actionSubmit value="register" action="register" /><br>
</g:form>
找不到问题,但在控制器中尝试打印所有参数'println params',看它是否在那里。也许你有一个错字或...... –
加上图像src是**肯定错了** –