4. Interceptors/Features

formValidation

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

Can be used in:

serviceProxy, api, for, choose, stompProxy, if, registration, wsStompReassembler, internal, interceptor, bean, transport and soapProxy

Syntax

<formValidation>
  <field >*
</formValidation>

Sample

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

Child Elements

ElementsDescriptionCardinality
field Specifies the name of the parameter and the regex to match against. 0..*

Example

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