Search Header Logo

Spring MVC

Authored by Alexis Gonzales

Computers

10th Grade

Used 88+ times

Spring MVC
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which annotation is used to validate a form object in the controller methods?

@Validate

@Valid

@Validation

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which interface contains the results of the validation performed on the form object?

BindingResponse

ValidationResult

BindingResult

ValidationResponse

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which form tag is used to display the error message in the jsp when a field fails validation?

form:errors

form:invalid

form:valid

form:input

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

The shown method allows us to validate the form object myForm.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which one among these validator annotations is NOT a default or out-of-the-box hibernate?

@Pattern

@Email

@Region

@NotEmpty

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

If the user wants a required field that can only accept alphanumeric characters with a fixed length of 10, which of the following will not be of use?

@NotNull

@Pattern

@Size

@Digits

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the name of the interface implemented by a custom validator class?

Validator

ConstraintValidator

MasterConstraintInterface

CustomValidator

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?