formValidation
Description
Using the formValidation interceptor you can validate the input of HTML forms.
Can be used in
spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler
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.