+49 228 5552576-0


info@predic8.com

formValidation

Description

Using the formValidation interceptor you can validate the input of HTML forms.

Can be used in

spring:beans, if, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy and transport

Syntax

				<formValidation>
					<field >*
				</formValidation>
Listing 1: formValidation Syntax

Sample

				<serviceProxy port="2000">
					<formValidation>
						<field name="age" regex="\d+" />
						<field name="name" regex="[a-z]+" />
					</formValidation>						
				</serviceProxy>
Listing 2: formValidation Example

Child Elements

Position Cardinality Description Element
1 1..* Specifies the name of the parameter and the regex to match against. field

Example

See the example in the examples/validation form folder of the Membrane Service Proxy distribution.

Copyright © 2008-2017 predic8 GmbH
Koblenzerstr. 65, 53173 Bonn, Tel. +49 (228) 555 25 76-0