Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6689293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:30:08+00:00 2026-05-26T05:30:08+00:00

I am trying to validate a form using Spring with integrated JSR-303 validations with

  • 0

I am trying to validate a form using Spring with integrated JSR-303 validations with Hibernate implementation. I have a “confirm email” (emailConf) field that I would like to confirm is equal to the email field. I saw a post of someone doing it like this:

public class ContactInfoForm {

    @NotEmpty
    private String name;

    @NotEmpty
    @Email
    private String email;

    @Expression(value = "emailConf= email", applyIf = "emailConf is not blank")
    private String emailConf;

    ...
}

However, this emailConf validation is not working (i.e. no error occurs when the fields don’t match). I’ve seen a couple tutorials that have shown similar annotations, but can’t find them anymore or any documentation on how this works. Does anyone know a way to validate “confirm email/password” fields through annotation? I am currently using the alternative, which is to implement Validator and validate the confirm fields in the validate method.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:30:09+00:00Added an answer on May 26, 2026 at 5:30 am

    May you should have look at this question and its answers: there are many ways discussed how to do a such a validation (it is about password and password confirm, but the problem is the same).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple form with fields that I am trying to validate using
I have a form dynamically created using Jquery and i am trying to validate
I'm trying to validate a form using Data Annotation. It seems great for string
At the moment I am trying to validate a form using PHP. The problem
I'm trying to validate a form using an AJAX call to check available inventory.
I am trying to validate an html form using javascript the code is bellow
I'm trying to validate a form using the validate plugin for jquery. I want
I am using spring framework 3. I have a form for posting comments to
I have a problem trying to validate a user value using the jQuery Validation
I'm trying to validate a form using jquery validate plugin and I'm having a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.