Learn Struts 2 Tutorial

To keep away from the wrong qualities, we have to perform approval on structures where client presents a few qualities. For instance, if client composes his/her email id as abc, we have to give blunder message to the client that the given email id isn't right. So we can have just significant informations.

There are three different ways to perform approval in swaggers 2.

1) By Custom Validation Here, we must implement the Validateable interface (or extend ActionSupport class) and provide the implementation of validate method. 2) By Input Validation (built-in validators) Struts 2 provides a lot of predefined that can be used in struts 2 application to perform validation. Struts 2 provides following bundled validators. Next Topic Struts2 Custom Validation Workflow Interceptor

javacodegeeks is optimized for learning.© javacodegeeks .
All Right Reserved and you agree to have read and accepted our term and condition