HOW to handle PHONE/ CREDIT CARD user input? Spring MVC / BOOT Formatter | Explore with debugging.

  Рет қаралды 28,134

Selenium Express

Selenium Express

Күн бұрын

Пікірлер: 88
@SeleniumExpress
@SeleniumExpress 4 жыл бұрын
Here is the video map : Video contains : 00:00:00 Why Late upload? : 00:02:16 Adding a communication channel to our app: 00:06:20 Do's and Don't: 00:12:56 How to handle nested objects: 00:15:01 Why a Formatter is required: 00:24:58 Formartter introduction : 00:37:00 Printer and Parser deep dive: 00:38:51 Writing a Phon number formatter: 00:40:00 Registering the formatter with the app: 00:44:00 Print method Logic implementation: 00:53:53 Parse method implementation : 01:06:49 Bug Fixes: 01:24:11 Assignment one (Defect) : 01:35:55 Assignment two (Story): 01:40:28 Wait for a Twist: 01:45:23 Bye Bye: 01:52:00 😅 Happy Coding !!
@neha6000
@neha6000 4 жыл бұрын
Selenium Express hii please make more video you the best and we need you please make video daily thank you very much to share your valuable knowledge
@habibaayaz3283
@habibaayaz3283 4 жыл бұрын
Hey, you haven't discussed about interceptors in any of your mvc series?
@shirishkirtane1
@shirishkirtane1 Жыл бұрын
This kind of teaching needs lot of hard work. Very impressive content delivery.
@jayakumarsivasankar9683
@jayakumarsivasankar9683 Жыл бұрын
Incredibly Amazing Work. No doubt in that. Quick correction tip: In the screenshot at 1:44:20 , The parse method return type should be Amount
@ashishsharma4651
@ashishsharma4651 4 жыл бұрын
As soon as you post the video I would prefer to start that point of time only, all videos are really awesome.
@zahidshoumik8967
@zahidshoumik8967 4 жыл бұрын
So much detailed explanation. The world needs more teachers like u.. Absolutely astounding ..
@arnabpaul4117
@arnabpaul4117 4 жыл бұрын
U r the finest teacher of spring. Just completed a 24 hrs break and resuming . LOL
@monalanjewar6202
@monalanjewar6202 3 жыл бұрын
Hey Abhilash...your spring videos are very good...it cleared my all concepts...m on my maternity leaves so whenever I get time I watch your videos so that I can revise 😎
@priyabiradar9299
@priyabiradar9299 4 жыл бұрын
in this lock down u r taking tooo much efforts ...kya khu.. i have wested my time i took too much rest after seeing u i get inspired .. from whr u get this much energy , sprite ...supeb abhilash ... very nice explanation.. as usual .....
@avitech4444
@avitech4444 4 жыл бұрын
I love this your knowledge sharing content. lockdown is very enjoyable because you are providing content for improve coding skills. I am very very happy thank you so much.... great journey
@srikanthkolisetty5921
@srikanthkolisetty5921 2 жыл бұрын
can't we use tostring() method in phone class to get output, here in the above the print method in formatter class is being called
@dignajames7538
@dignajames7538 Жыл бұрын
awesome classes
@sudheerbommisetti1116
@sudheerbommisetti1116 4 жыл бұрын
Hopefully, u came back with your awesome video... and U deserve a lot of Appreciation from all the fellows who are following your tutorials...
@sahilchaudhary303
@sahilchaudhary303 4 жыл бұрын
Hi Abhilash, Its a great initiative by you to share your knowledge with us. I am following your spring videos to groom my skills. I have a request to make, can you please make a series on spring boot also , it will be a great help to us.
@sachinaherrao2823
@sachinaherrao2823 4 жыл бұрын
Hi Abhilash, thank you for the Spring MVC series. It is really helping me to learn these things qucikly and implement these things in my project. Since we already have 9 tutorials. I would like to know how many more tutorials will be there to complete Spring MVC intermediate?
@sagarsri4143
@sagarsri4143 4 жыл бұрын
Superb explanation
@maan9011
@maan9011 3 жыл бұрын
Ur videos r simply superb no doubt. Really wanted to watch but too lengthy can u pls brk in small chunks😄
@anilmdevadiga2394
@anilmdevadiga2394 4 жыл бұрын
Awesome explanation, as usual ❤️
@kvinaykumarsravan
@kvinaykumarsravan 4 жыл бұрын
i seen it first time when i am searching for spring mvc and its an awesome explanation. can u also make a videos on hibernate framework .....soon?
@shubhi2648
@shubhi2648 4 жыл бұрын
yes sir.. Hibernate is highly needed..
@yugalchaudhari5991
@yugalchaudhari5991 4 жыл бұрын
You are awesome Sir. Very well explained. Thank You.
@munisekhara1845
@munisekhara1845 4 жыл бұрын
Thank you so much.. Eagerly waiting to get the upload notifications... Thanks for uploading the video
@pratikpathak9337
@pratikpathak9337 4 жыл бұрын
I regularly check your spring MVC playlist like people regularly checks their what's app or fb status....
@SeleniumExpress
@SeleniumExpress 4 жыл бұрын
@VibeWithUs-2024
@VibeWithUs-2024 6 күн бұрын
​@@SeleniumExpressI will check this youtube channel whenever I want to shift my company 😅😅
@shobhitgupta7843
@shobhitgupta7843 4 жыл бұрын
After long time... Good to see you..
@yogeshwarimadhavaraj131
@yogeshwarimadhavaraj131 Жыл бұрын
hi , i have followed the same steps to configure formatter class, but my parse method is not invoking ?
@tuberhsieh34
@tuberhsieh34 2 жыл бұрын
When email textbox and phone number textbox are blank, communication.email is filld as "" (empty string) by Spring, but communication.phone is null and Phone formatter was not even called (I have tested that Phone formatter was called if phone number textbox is not blank). Why email is treated as empty string by Spring, but phone number was not passed as empty string into my Phone formatter? Looks like if a query parameter's value is empty string, Spring won't call the formatter to do conversion !?
@sayantanghosh8245
@sayantanghosh8245 4 жыл бұрын
Very happy.... Long awaited ❤️
@shubhi2648
@shubhi2648 4 жыл бұрын
thanks for explaination sir.. however have one question: at time 01:03:15 when we are printing phone number in registerationSuccess page. there toString of Phone class is coming into picture and phone number is correctly displayed.. Why same thing is not happening in Register Page later (when we felt the need of using print method.. )
@puksapple5104
@puksapple5104 4 жыл бұрын
we r printing the string representatoin of object using toString() ..and what u r talking about register page plz clarify more..
@tuberhsieh34
@tuberhsieh34 2 жыл бұрын
About register page, it's using Spring form tags, so there is data binding between form tags and model attribute(i.e.UserRegistrationDTO). When form tag textbox phone is binded to UserRegistrationDTO.communication.phone, Spring uses formatter's parse() function to convert from String to Phone object; when Spring wants to bind UserRegistrationDTO.communication.phone to form tag to show text, Spring uses the reverse method formatter's print() function to convert from Phone object back to String. Inside registration-success page, accessing ${userRegistrationDTO.communication.phone} represents object in it's string format (by toString() function). I think they are just two different mechanisms. Of course we can also use the ${......} to access model attributes's property in register page.
@atharkarim6426
@atharkarim6426 4 жыл бұрын
Salute your courage, enve in lock down period you are work so hard from home town. Could we know your home town please.
@manasanayak28
@manasanayak28 Жыл бұрын
Hi how exactly spring came to know that it has to execute formatter class for phone number field only? And also if there are multiple formatter classes , how spring will come to know what class to invoke?
@Banaras_08
@Banaras_08 4 жыл бұрын
This tutorial for beginners is very useful like me
@kingluis99
@kingluis99 9 ай бұрын
I have difficulty in solving coding the currency formatter on using Locale. Can anyone share the solution?
@manikantamukkapati3685
@manikantamukkapati3685 4 жыл бұрын
finally ufff...But worth waiting thank you for the video
@vikasgautam7717
@vikasgautam7717 4 жыл бұрын
What if you want to parse an array of string object coming from checkbox to a user defined object. How will you handle that???
@amiiirdy6604
@amiiirdy6604 4 жыл бұрын
hi avilash.. your video's are amazing ..god bless you. can you please do some video's on spring boot microservices
@neha6000
@neha6000 4 жыл бұрын
hii please make more video you the best and we need you please make video daily
@thecatleo
@thecatleo 4 жыл бұрын
may god bless you! Thank you for your service !!
@IgorTodorovic1987
@IgorTodorovic1987 2 жыл бұрын
Default value of String is null, but we do not get an exception so now I'am confused. Can somebody explain that to me.
@tuberhsieh34
@tuberhsieh34 2 жыл бұрын
Because we write UserRegistrationDTO as a function argument of showRegistrationPage(), Spring will try to bind the query parameters in URL to UserRegistrationDTO object. There is no query parameters while accessing URL "/register", so Spring has nothing to bind and all fields of UserRegistrationDTO keeps their default values(reference type is null). So at 1:14:23, when trying to access method/property of a null object, exception happened. Because we write UserRegistrationDTO as a function argument of processUserReg(), Spring will also try to bind the query parameters in URL to UserRegistrationDTO. There are query parameters while accessing URL "/register-success". For example, if textbox of user name is blank, then URL will be "/register-success?userName=&password=......", so there are query parameters for Spring to bind. So userName field of UserRegistrationDTO object becomes empty string because query parameter userName's value is empty string. Try to debug and set break points inside both showRegistrationPage() and processUserReg(), then watch the value of fields of UserRegistrationDTO object to see the difference.
@priyabiradar9299
@priyabiradar9299 4 жыл бұрын
supeb dude... asusual...java guruu...
@santhoshkoduri223
@santhoshkoduri223 4 жыл бұрын
Hi can you share mail id
@AmitYadav-mh6gy
@AmitYadav-mh6gy 4 жыл бұрын
He bro your video is really good for us can u provide one project on curd operations.
@saranya2310
@saranya2310 4 жыл бұрын
Please upload tutorial on spring boot concepts. As it is required for many companies project work.
@naani55
@naani55 4 жыл бұрын
nice explanation bro .. small doubt .. why this channel name is selenium but there's nothing related to selenium
@a.s.raghuwanshi7028
@a.s.raghuwanshi7028 4 жыл бұрын
Sir Once start watching your video i am getting a flow and can't stop before complete it.
@sadruddinkhan4182
@sadruddinkhan4182 4 жыл бұрын
PhoneNumberformatter class is not called when i am debug my code please help
@himanshupujari5558
@himanshupujari5558 4 жыл бұрын
Have you configured it in configuration class?
@SeleniumExpress
@SeleniumExpress 4 жыл бұрын
Hi Sadruddin, Please redirect the issue to the support group.
@sadruddinkhan4182
@sadruddinkhan4182 4 жыл бұрын
@@SeleniumExpress thanks for the help issue has been solved
@pixo-pixel
@pixo-pixel 4 жыл бұрын
Sir can you build a project using spring... So we can learn how to use these technology in real time.
@sumit1895
@sumit1895 3 жыл бұрын
1:40 if (index == -1) { // if client only typed the number not the country code; phone.setCountryCodeString("91"); phone.setUserNumber(arg[0]); }else { if(index==0) { phone.setCountryCodeString("91"); phone.setUserNumber(arg[1]); }else { phone.setCountryCodeString(arg[0]); phone.setUserNumber(arg[1]); }
@techieadi4377
@techieadi4377 4 жыл бұрын
Abhilash u have any training institute where we can learn online ??? If it is paid that is also fine bcz u explain very nicely.so for that I can pay also
@datdang9416
@datdang9416 7 ай бұрын
1:51:03 - If text box is blank, the default value will be empty String ""
@lakshminarasimhanr5981
@lakshminarasimhanr5981 4 жыл бұрын
hi abilash, my Euro symbol from my parser method turns into ? on screen , can you please help me on this
@SeleniumExpress
@SeleniumExpress 4 жыл бұрын
Hi Laxmi, Please post your code on group. I will check out, once free. 😊
@Dk-nn4xv
@Dk-nn4xv 4 жыл бұрын
how to join ur training program? will you please guode?
@Dk-nn4xv
@Dk-nn4xv 4 жыл бұрын
guide*
@shreyabanka2037
@shreyabanka2037 4 жыл бұрын
please make video on web services using mvc framework
@j.l.g.299
@j.l.g.299 2 жыл бұрын
If we use an formatter Interface we should implements ALL THE METHODS,but you are implementing 1method only(ADDFORMATTER()method) we are getting error without implementing all methods.AT VEDIO TIMING IS 42.55.
@nguyenquan4836
@nguyenquan4836 Жыл бұрын
I m enjoy watching the video as watching the football.
@rajaanthonysamy9719
@rajaanthonysamy9719 4 жыл бұрын
Thank you brother please teach jdbctemplate and crud view
@eswarhumanist1399
@eswarhumanist1399 4 жыл бұрын
Thank you for your help. I am learning a lot. For the solution bug fixing where " - " is coming at first in the Phone number, I used Index zero instead of startsWith ......
@ankitsethia6534
@ankitsethia6534 4 жыл бұрын
Sir if we store phone number as a String variable then what is the problem? Is it mandatory to use org.springframework.format.Formatter parse and print method? Please reply Sir.
@SeleniumExpress
@SeleniumExpress 4 жыл бұрын
Hi Ankit, No it is not mandatory. If it string type, you wont be needing a formatter. However, most of the time we have to deal with complex object type in real time.
@ankitsethia6534
@ankitsethia6534 4 жыл бұрын
@@SeleniumExpress ok got it. Thanks Sir.
@kailashbhai8658
@kailashbhai8658 4 жыл бұрын
Tnku bro
@shanmugavelan33
@shanmugavelan33 4 жыл бұрын
Assignment 1 : Bug fixing: while checking the indexOf of (-).Additionally check if condition with if(index==-1 || index==0)..then things works fine.
@wahid4544
@wahid4544 4 жыл бұрын
thanks
@ajayreddy4541
@ajayreddy4541 4 жыл бұрын
Hello Abhishek, Is it possible to add hibernate validator for the phone and put some regular expression so that user is forced to enter the phone number in a prescribed format(eg: 91-1234567890) checking if anything before the hyphen is number before hyphen and after hyphen it should be 10 digits. Could you please explain how we can enforce this one. Again Thank you so much for the videos. Appreciate all the work you're doing.
@SantoshChouhanfun
@SantoshChouhanfun 4 жыл бұрын
I want to call you sir but I know that you like the word hey Abhilash,so hey Abhilash please start sharing ur upi number and Paytm number in discription,we will support you financially so that you can give more time to us....your all subscriber want master of spring boot and you can make them master but as you are working in lot of projects simultaneously that is why you are not providing videos to your fan on timely,in this way it may take at least 2 year to complete the course.......one thing I can assure that you are born to teach so please try to balance....we will support you financially ....
@BirdHouseOfficial
@BirdHouseOfficial 4 жыл бұрын
I have just added one "else if" to solve Assignment #1 if (index == -1) { // if the "-" is not found, then add 91 as the default country code phone.setCountryCode("91"); phone.setUserNumber(phoneNumberArray[0]); } else if (index == 0) { phone.setCountryCode("91" + ""); phone.setUserNumber(phoneNumberArray[1]); } else { // Extract the countryCode and set it to the phone class countryCode property phone.setCountryCode(phoneNumberArray[0]); phone.setUserNumber(phoneNumberArray[1]); }
@RaviSharma-fk9vq
@RaviSharma-fk9vq 2 жыл бұрын
and if user entery 9-888888 then? you need to set is for index 1 also..
@srinivasgangaraju2998
@srinivasgangaraju2998 Жыл бұрын
bgm at the start kzbin.info/www/bejne/jp_anqqkf9SGoMU&ab_channel=NoCopyrightMusic
@sameer9368
@sameer9368 4 жыл бұрын
Yes I will buy new tripod for u
@SeleniumExpress
@SeleniumExpress 4 жыл бұрын
😅
@srikanth1313
@srikanth1313 4 жыл бұрын
Empty String ""
@SantoshChouhanfun
@SantoshChouhanfun 4 жыл бұрын
for assignment #1 instead of changing whole logic we can solve the issue by adding just one else if statement if(index==-1) { phone.setCountrycode("91"); phone.setUsernumber(phonenum[0]); } else if(index==0) { phone.setCountrycode("91"); phone.setUsernumber(phonenum[1]); } else { phone.setCountrycode(phonenum[0]); phone.setUsernumber(phonenum[1]); }
@thegamernag
@thegamernag 4 жыл бұрын
Spring MVC is outdated present projects why you are not saying springboot
@chiragvohra6673
@chiragvohra6673 Жыл бұрын
1:05:47 #engineers
@ganeshpasupuleti3006
@ganeshpasupuleti3006 2 жыл бұрын
A - Empty string
@sanketsonje1694
@sanketsonje1694 2 жыл бұрын
null
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Better Java Streams with Gatherers - JEP Cafe #23
1:13:32
5 Secrets to Stop Stuttering & Speak More Clearly!
12:44
Vinh Giang
Рет қаралды 87 М.
5 Hidden Windows Features You Should Be Using in 2025!
8:05
Kevin Stratvert
Рет қаралды 121 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН