All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.jcaptcha4struts2.jcaptcha4struts2.2.0.2.source-code.struts-plugin.xml Maven / Gradle / Ivy

Go to download

JCaptcha4Struts2 is a Struts 2 Plugin which allows to add Captcha support to your Struts 2 Applications with a single JSP tag, and slight configuration in your struts.xml. It uses the powerful JCaptcha engine internally to generate the captcha.

The newest version!
<?xml version="1.0" encoding="UTF-8" ?>
	<!--

		/* * Copyright (C) 2008-2009 Yohan Liyanage. * * Licensed under the
		Apache License, Version 2.0 (the "License"); * you may not use this
		file except in compliance with the License. * You may obtain a copy of
		the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless
		required by applicable law or agreed to in writing, software *
		distributed under the License is distributed on an "AS IS" BASIS, *
		WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
		implied. * See the License for the specific language governing
		permissions and * limitations under the License. */
	-->
	<!--

		Struts2 Plugin Configuration ============================ Author :
		Yohan Liyanage
	-->
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>


	<include file="struts-default.xml" />

	<package name="jcaptcha4struts2-default" extends="struts-default">

		<result-types>
			<result-type name="captchaImage"
				class="com.google.code.jcaptcha4struts2.core.actions.support.CaptchaImageResult" />
		</result-types>

		<interceptors>
			<interceptor name="jcaptchaValidation"
				class="com.google.code.jcaptcha4struts2.core.interceptors.JCaptchaValidationIntercepter" />
			<interceptor-stack name="jcaptchaDefaultStack">
				<interceptor-ref name="defaultStack" />
				<interceptor-ref name="jcaptchaValidation" />
			</interceptor-stack>
		</interceptors>

		<action name="jcaptcha_image"
			class="com.google.code.jcaptcha4struts2.core.actions.JCaptchaImageAction">
			<result type="captchaImage" />
		</action>

	</package>

</struts>





© 2015 - 2025 Weber Informatics LLC | Privacy Policy