nagyistoce / kaptcha

Automatically exported from code.google.com/p/kaptcha
Other
0 stars 0 forks source link

Enhancement for Wiki documentation #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Here is a better way to define more than one property
in Spring:

    <bean id="captchaProducer" class="com.google.code.kaptcha.impl.DefaultKaptcha">
            <property name="config">
                    <bean class="com.google.code.kaptcha.util.Config">
                            <constructor-arg  type="java.util.Properties">
                                <props>
                                    <prop key="kaptcha.image.width">300</prop> 
                                    <prop key="kaptcha.image.height">25</prop>
                                    <prop key="kaptcha.textproducer.char.string">0123456789</prop>
                                    <prop key="kaptcha.textproducer.char.length">4</prop>
                                </props>
                            </constructor-arg>
                    </bean>
            </property>
    </bean>

regards,
Bernhard

Original issue reported on code.google.com by bernhard.greenwood on 28 Feb 2011 at 4:14

GoogleCodeExporter commented 9 years ago
fixed. thanks.

Original comment by latch...@gmail.com on 13 Dec 2011 at 5:08