Комментарии:
Hey guys if you're facing some validation issues, just use spring boot starter validation dependency ONLY instead of using validation API and hibernate validator dependencies. then update your maven project and rerun the application. It worked for me!!!
Ответитьplease make video on validation using java scripts
Ответитьi am using jakarta package , but everythings same still i cant use @Valid
anyone plese help me.....
Javax.validation is changed to jakarta.validation
ОтветитьSir bhot kuch try kr liya but validation nhii lgg rhi program me 😢
Kyaa kree plzz reply
It is quite annoying when someone puts their video's title in English but ends up speaking Hindi or another language.
Ответитьwatching in 04-08-2023 , we have to make some modifications in the code, then only it works
ОтветитьSIr this is not showing me errors while submitting blank data @PostMapping("/process")
public String processForm(@Valid @ModelAttribute("loginData") LoginData loginData, BindingResult result){
if(result.hasErrors()){
System.out.println(result);
return "form";
}
System.out.println(loginData);
return "sucess";
}
Did anyone getting error Property or field userName cannot be found NULL??? how to solve it?
ОтветитьHey I'm getting details by th:text=" ${loginData}" but it shows error for th:text=" ${loginData.userName}"
ОтветитьI cant understand sir , where the Rest api series end , where thymeleaf end , and this is of mvc
ОтветитьSir I am writing html:5 then press it is not working
ОтветитьWell explaination
ОтветитьI'm unable to validated the input data I also added hibernate related dependency also added @Valid annotation, clean and rebuild the project for 2nd try also tried to ad the jar files in project structures but still not able to run validation. After @Valid still my programme is taking null data in db
ОтветитьAfter adding @ valid annotation I m getting error jakarta. ServletException: circular view path[form]... How to solve plz reply
ОтветитьHi Durgesh I have added Hibernate validator dependency but not showing binding result errors on console....Can you help me...
Ответитьlatest update: javax dependencies are now moved to jakarta package. I tried javax validations but they are not working, when I replace it with jakarta now the validation working fine.
ОтветитьEmmet ka link share kr do please
Ответитьthose who are not getting error msg after submitting unacceptable values
just use this dependency only
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
And, import these packages
jakarta.validation.Valid
jakarta.validation.constraints.Size
jakarta.validation.constraints.NotBlank
for @Valid, @Size and @NotBlank annotations...
how to do this login page in jsp
ОтветитьThank you so much Sir for these videos. But I am not able to get errors in result. @Valid is not working or what could be the reason. Downloaded your code also but same issue.
ОтветитьThose who getting zero errors check your dependencies properly
ОтветитьHi sir.. please help for how i apply validation for jsp page..means instead of th: tag i want to apply form: tag..so how to do using form tag . please help
Ответитьfor some reason validation is not working...:(
ОтветитьThanks Sir
Ответитьthnk u sir
ОтветитьSize annotation is not work. Only NotNull annotation is worked .
Ответитьi am using jdk 11 and spring boot 2.6.4 @Size(max = 5, message = "A persons name must not be longer than 5 characters.") annotation is not working .Is there any problem.
i tried with jdk 14 also but problem remains same.
liked the content
Ответитьvalidation is not working after writing code
ОтветитьSuperb video . Ek cheez confirm karni thi , isme ham alag alag code likh rhe hain email aur username validation ka html me using thymeleaf. Isko generic karne ke liye ham fragment bana sakte hain jisme input me parameter daal denge email ya username aur wo FRAGMENT yaha include kar lein . Code generic ho jaayega poore project ke liye hamara . Ab jisko b call karna hai wo us fragment ko include karle
Ответитьthank you so much😭
ОтветитьBahot confusing hai video plzzz clear explain
ОтветитьThank you Sir, I've been following your tutorial and very awesome and helpful; but I've got a question about how to validate ManyToOne r/s, for example Trainee and course, one trainee can take many course and if the registered trainee has already taken the course, the system rejects it while registration using course_id and trainee_id (because they are trying to take the same course twice),..the message displayed is:"this trainee has already taken this course". Could you kindly help on this problem using Springboot Validator?
ОтветитьSir can you explain the purpose of sending empty object to the form? Cause even if we do not send it it is working. I am new, so I am having doubt.
Another one in MVC we was using Model to send data to a page along with @moduleattribute..but here we are not..and it is working how and why?
This was very well Explained. Ty
ОтветитьIf data is not mandatory then we want to use regex then how we can use....if data there then check pattern .. otherwise no error...how can we do?
ОтветитьPlz Make video on Design Pattern It is my request
ОтветитьThanks a lot sir
Ответитьare sir,hmare me form page execute krne pe username or email not found or may be null exception error aa rha hai,reply to kro
Ответитьsir apne form page me loginData ka username and email direct kese access kiya,wo to private h na loginData class me
ОтветитьSir can you upload videos of Springboot with Angular JS
ОтветитьAfter applying validation blanks values are getting accepted no errors are coming in bindingresult's object
ОтветитьHi sir ,thanks to this video,sir when will u make jursy projects
ОтветитьFacing issue while creating spring boot project in eclipse and select spring starter project, it shows error SunCertPathBuilderException : unable to valid certification path to requested target...plz help me on this...
Ответить