#5 Servlet and JSP Tutorial | Create Servlet and web.xml Config

  Рет қаралды 483,155

Telusko

Telusko

Күн бұрын

Check out our courses:
Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : bit.ly/java-spring-cloud
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusko.com/
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
TELUSKO Android App : bit.ly/TeluskoApp
Discord : / discord
Complete Servlet and JSP playlist : goo.gl/pKFeSv
In this video will see the handelling of request and response objects using servlet.
We will see :
- Form handling
- Create new Servlet class which extends HttpsServlet
- service() method
- Request object
- Response object
- Passing value
- request.getParameter method
- Query String
- Deployment Descriptor
- web.xml file
- servlet and servlet-mapping tags
- Fully qualified name
- Accepting values from user
- Printing the result on page
A servlet is a Java programming language class that is used to extend the capabilities of servers that host applications accessed by means of a request-response programming model.
Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by web servers. For such applications, Java Servlet technology defines HTTP-specific servlet classes.
The javax.servlet and javax.servlet.http packages provide interfaces and classes for writing servlets.
All servlets must implement the Servlet interface, which defines life-cycle methods. When implementing a generic service, you can use or extend the GenericServlet class provided with the Java Servlet API.
The HttpServlet class provides methods, such as doGet and doPost, for handling HTTP-specific services.
Java and Spring Framework For beginners with Spring Boot : - bit.ly/3LDMj8D
Java Tutorial for Beginners (2023) :- bit.ly/3yARVbN
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Subscribe to our other channel:
Navin Reddy : kzfaq.info/love/xmk...
Telusko Hindi :
kzfaq.info/love/itz...
Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
www.telusko.com/contactus

Пікірлер: 366
@omaralkhalisi4354
@omaralkhalisi4354 5 жыл бұрын
I've been looking for someone to teach me how to deploy java programs that we learned in school into a website. this channel is exactly what I was looking for. THANK YOU SO MUCH
@varunreddy9806
@varunreddy9806 2 жыл бұрын
I don’t understand why lecturer’s in clg make this simple topic look so complicated with their teaching . Really your teaching helped sir . Thank you ❤️
@shashikalaraju5769
@shashikalaraju5769 4 жыл бұрын
I cant thank you enough for putting up these videos for us to learn. There's no other video in the whole of youtube that is as useful and good as this. Thank you is all I can say.
@kakaoringo0929
@kakaoringo0929 4 жыл бұрын
seriously you are my SAVIOR 😭 I had been struggling a lot from understanding how to do these codings... THANK YOU SO MUCH!!!!!
@techmoon_
@techmoon_ 2 жыл бұрын
I dont even know what I will do without you my dear teacher....!!!! I started practicing servlet and getting error out of the world. I searched all websites, stackoverflow,stackexchange,etc.... and lot of unknown name websites.... After that I watched your playlist and started practicing ... THE END!!!!!!!! No words can describe my thank to you. You are the BEST!!!!!!!!!!!!!!!!!!!!!!!
@PANKAJKUMAR-fe8zn
@PANKAJKUMAR-fe8zn 4 жыл бұрын
Thank you very much sir... because of your tutorial,I am able to understand better these concepts otherwise, I have spend lakhs of rupees on my degree but not interested in classroom lectures. KZfaqr like you and other are making a good software developer who has good concepts of the subject. love you sir....♥️♥️♥️♥️
@starman9000
@starman9000 3 жыл бұрын
I am coming from .Net background! Needed to learn JSP to work on in one of the project, I felt Servalet and web.xml is so funny ! You are great teacher and have real good teaching method. I love the way you explain in depth. I enjoyed it. Thank you for making this video.
@poladalqayev631
@poladalqayev631 6 жыл бұрын
Thanks , man for your all tutorials and videos ! You are exactly person who we are looking for !
@lodashnotebook5390
@lodashnotebook5390 4 жыл бұрын
Amazing. This was hands down the best video I have seen on your channel. Keep up the good work. I will surely meet you if you're in Mumbai!
@chiranjeetparida263
@chiranjeetparida263 4 жыл бұрын
Sir u are really splendid. Your explanation is simplified and crystal clear. Also ur communication skill is damn good. Thanks for such tutorials which makes learning a fun.
@jamestran1719
@jamestran1719 6 жыл бұрын
the best teaching technique i have ever seen. appreciate your time . thank a lot
@curseb100d26
@curseb100d26 Жыл бұрын
Now Java Servlet make sense to me big thanks on your step-by-step playlist 💯
@dharmang
@dharmang 4 жыл бұрын
Best video series for Adv. java. Just learning in advance so that i can laze around in class and only do practicals instead of theory hahaha 😂
@shoebkhan1503
@shoebkhan1503 4 жыл бұрын
Thank you very much. The way to create the problem intentionally and tell the solution was best!!
@lodashnotebook5390
@lodashnotebook5390 4 жыл бұрын
Yeah. That comes thru practice. But I knew Sysout prints to the console so I caught that one!
@thedrunkmonk8386
@thedrunkmonk8386 4 жыл бұрын
Very clear, thank you. My database professor simply said final project is a web application, use whatever. :'D I used some javascript last year but I don't remember much, we've just finished a project using jdbc, so I understand that well enough, but for the in-between I had no idea.
@hanishvenkat9496
@hanishvenkat9496 7 ай бұрын
your videos always provides the best information .....thank you
@domb3665
@domb3665 5 жыл бұрын
Thanks, I really need to understand how web.xml works so this was a help
@chandranihalder8713
@chandranihalder8713 6 жыл бұрын
Awesome tutorial, thanks!
@tusharadhatrao4749
@tusharadhatrao4749 3 жыл бұрын
Thank you soo much sir!!! I was trying to run servlets for 2 days!!
@arpita0608
@arpita0608 5 жыл бұрын
thankyou bhaiya your playlist are amazing..u really teach well
@sunnyparmar9692
@sunnyparmar9692 5 жыл бұрын
This was a very helpful video indeed.. thank you
@Development_In_Research
@Development_In_Research 2 жыл бұрын
i was struglling for last 4 hrs, finally tqqqqqqqq
@digitalcity3153
@digitalcity3153 5 жыл бұрын
Wow.... your Explanation is great sir
@thiago670
@thiago670 6 жыл бұрын
I really like of your classes, very good! Do you use servelets in your projects?
@ankitaB11
@ankitaB11 2 жыл бұрын
This is hands down the best. End of story
@nikkuzmich5378
@nikkuzmich5378 3 жыл бұрын
You helped me a lot. Thank you!
@chinli72
@chinli72 2 жыл бұрын
Best video on servlet, simple and clear.
@MuhammadUsman-ke1sl
@MuhammadUsman-ke1sl 3 жыл бұрын
Excellent Content, well explained, well programmed
@akshayn7687
@akshayn7687 2 жыл бұрын
Thank you so so so much Sir.....I don't understand this at the class ....but after watching this video I understand all this things.....😍 keep doing sir😍👍🏻
@dhananjaygohil1527
@dhananjaygohil1527 5 жыл бұрын
You are a very good teacher sir.
@xyzabc6898
@xyzabc6898 3 жыл бұрын
THANK YOU SIR, you Cleared this Concept in Java ....
@rusnardo17
@rusnardo17 3 жыл бұрын
Thank you very much, very well explained.
@muthulakshmiram7622
@muthulakshmiram7622 2 жыл бұрын
Thank you Navin... It's truely amazing and thanks again
@swordrohit07
@swordrohit07 3 жыл бұрын
very clear explanation ..great tutorial
@p9bklokendrabhajane255
@p9bklokendrabhajane255 3 жыл бұрын
Awesome channel for me . Salute to you Sir..
@sunnyjain630
@sunnyjain630 4 жыл бұрын
thanks sir for this lucid way of teaching....
@vaayuo
@vaayuo 5 жыл бұрын
Thanks, that helped a lot!
@stursshiphez7559
@stursshiphez7559 3 жыл бұрын
You are a blessing, sir. Keep doing the good work ❤️
@realhealthywater7135
@realhealthywater7135 3 жыл бұрын
Great explanation dear navin. thanks
@simbol5638
@simbol5638 5 жыл бұрын
Great Lecture sir!
@arunagirim3455
@arunagirim3455 3 жыл бұрын
its coming error while importing java servlet.http.HttpServlet can anyone help me
@junaidansari95
@junaidansari95 6 жыл бұрын
Super tutorials by superman! Lol
@nc840
@nc840 3 жыл бұрын
The origin server did not find a current representation for the target source or is not willing to disclose that one exists. I had that kind of problem and I solved it. I deleted eclipse and tomcat. and again I downloaded and installed them and it finally works. cheers :)
@anjupanicker7934
@anjupanicker7934 3 жыл бұрын
Jeez Thanks a lot I owe my life to this vid
@syedidrees6220
@syedidrees6220 4 жыл бұрын
Thank you sir very well explain you make it very easy to learn
@priyankau1982
@priyankau1982 3 жыл бұрын
Amazing tutorial helped a lot
@aastha4708
@aastha4708 3 жыл бұрын
you have amazing knowlegde sir...hatts off to you and thanks for sharing...
@ReinaldoAlves_Alves
@ReinaldoAlves_Alves 3 жыл бұрын
thank you so much, bro. It helped me a lot
@geesslight18
@geesslight18 3 жыл бұрын
sir, thank you for your great tutorial
@sumanjogi614
@sumanjogi614 3 жыл бұрын
It is very helpful....thank u very very much!!!
@girirajsekar9951
@girirajsekar9951 5 жыл бұрын
Thankyou sir its really awesome.
@jkye_314
@jkye_314 4 жыл бұрын
you are the best one !
@Nani-gi3ef
@Nani-gi3ef Жыл бұрын
Really you are so amazing sir
@maveone2
@maveone2 6 жыл бұрын
Hi Naveen , great tuts.. Thanks for helping us... Had a small confusion.. Coming to servlet mapping , i do not have the tags in web.xml, yet my servlet deployed properly. Also while creating the servlet, in deployment description window, i mentioned a vague path to test like "/anything/test" , but it deployed again properly.. How was that?
@surajtopal9940
@surajtopal9940 3 жыл бұрын
so far soo good sir ji , thanks a lot
@darshangaikwad8626
@darshangaikwad8626 3 жыл бұрын
Sir You're awesome ❤️
@sathishkumarr7106
@sathishkumarr7106 4 жыл бұрын
Keep teaching bro❤️🙂
@Nani-gi3ef
@Nani-gi3ef Жыл бұрын
Iam always Thanking You Sir❤
@RoguePow
@RoguePow 5 жыл бұрын
im trying to do the same, servlets with jsp in tomcat, but using maven aswell, i have this problem at the beginning were i couldnt get to the servlet, i tried putting the servlet and the servlet -mapping in the xml, but whe i run it on the server i got an error, then i deleted what i put in the xml, saved, and then run it normally, after it i tried to get to the servlet and it worked..., so, to make sure it worked, i put more responses on it, but i wasnt gettig the new responses, even when i did what i did in the xml, any solution?
@akshaysontakke3055
@akshaysontakke3055 2 жыл бұрын
Thanks you so much sir for your efforts and dedicated to teach 🔥🔥🔥🔥🔥🔥
@venpolis8258
@venpolis8258 6 жыл бұрын
Hi....Naveen Sir, why do we write "/add" instead of "add" at the tag in web.xml file
@BibekGhoshh1
@BibekGhoshh1 2 жыл бұрын
lots of love sir
@berkercin6800
@berkercin6800 5 жыл бұрын
you have named your texts num1 and num2 and in AddServlet class when you request parameter you write "num1" and "num2" are those have to be the same?
@jaivinmovaliya5827
@jaivinmovaliya5827 5 жыл бұрын
Amazing teaching
@maddydllng2882
@maddydllng2882 5 жыл бұрын
superb sir.....
@rashijain4207
@rashijain4207 6 жыл бұрын
Superb tutorials
@dhirajshalgar5015
@dhirajshalgar5015 3 жыл бұрын
Hello sir I have got 1 error of 404. Says that, " the origin server did not find a current representation for the target resource or is not willing to disclose that one exists. "
@sita476
@sita476 2 жыл бұрын
Have you resolved it?
@sreelakshmiks292
@sreelakshmiks292 4 жыл бұрын
Very helpful🤗
@niveditahassanandani5340
@niveditahassanandani5340 6 жыл бұрын
Thank you so much sir
@sagarmeena0210
@sagarmeena0210 5 жыл бұрын
you make it everything easy
@top5things968
@top5things968 Жыл бұрын
Thank you sir !
@shailjakantupadhyay5183
@shailjakantupadhyay5183 5 жыл бұрын
Sir Please help me, does index.html is the one where program started running ? Who initiated the program ?
@preethamm.n1161
@preethamm.n1161 4 жыл бұрын
💞💞💞Awesome sir I love servlets 🌹💞💞💞
@vishuvyas9716
@vishuvyas9716 2 жыл бұрын
sir you are awesome
@shiva3499
@shiva3499 8 ай бұрын
Than you sir
@ashwanipanchal7467
@ashwanipanchal7467 5 жыл бұрын
Sir i'm doing this same thing PrintWriter out = res.getWriter(); out.println("REsult"); but result is still showing on console. what should i do now sir help me.
@bharathirv8479
@bharathirv8479 5 жыл бұрын
I have one doubt. in this tutorial, u created one HTML file under web content. so it's default location. if I have many HTML files how I host the all HTML files from separate folder .ex webcontent/html/index.html is possible .if possible how to do that.
@techpredictor509
@techpredictor509 3 жыл бұрын
you are nailed it.
@rammoorti8619
@rammoorti8619 6 жыл бұрын
Very helpful
@luvpreetsingh8566
@luvpreetsingh8566 4 жыл бұрын
excellent!!!
@gopalbharadva9623
@gopalbharadva9623 5 жыл бұрын
Sir you are amazing i understand very much from your tutorials and in my college there are faculties which have nothing knowledge to teach us Even they don't know how to print hello world in any programming language
@tanush809
@tanush809 2 жыл бұрын
Excellent
@prathamchitransh5338
@prathamchitransh5338 2 жыл бұрын
In my web.xml file there is a predefine code of 4726 lines but in your case there are only 16 line how to resolve this?
@arun1993apr
@arun1993apr 6 жыл бұрын
i'm getting http status 500 what to do sir?? the output is also not displaying in console......
@amitrathod1134
@amitrathod1134 3 жыл бұрын
It is an Internal Server Error. The reason for that can be your server is not yet started or not properly configured.
@techbuddy1519
@techbuddy1519 5 жыл бұрын
hey can you tell me why internal browser is desabled in eclipse .by the way i am using ubuntu.please solve my issue
@hamidja1537
@hamidja1537 Жыл бұрын
Thanks for sharing
@rupeshmahajan1667
@rupeshmahajan1667 5 жыл бұрын
How we can call service with multiple url , like I want same functionality with different url. Ex. /add and /service/V2/add
@hardik_it8825
@hardik_it8825 6 жыл бұрын
i have no option of HttpServlet class extendable so what can do for it
@lianansan
@lianansan 6 жыл бұрын
Thanks a lot
@manojrana4469
@manojrana4469 4 жыл бұрын
Eclipse: Missing web.xml file? How can I create web.xml in Eclipse? DemoApp Right Click Java EE Tools Generate Deployment Descriptor Stub after that you got the web.xml file
@erickresurreccion5716
@erickresurreccion5716 3 жыл бұрын
why i cant click generate deployment descriptor stub?
@dogukanteber4007
@dogukanteber4007 3 жыл бұрын
thank you man
@amanjethaniya7011
@amanjethaniya7011 3 жыл бұрын
thanks
@nirbhay6638
@nirbhay6638 3 жыл бұрын
@@erickresurreccion5716 hey did you get how to do?
@Abhi-ss5lk
@Abhi-ss5lk 4 жыл бұрын
wow sir very nice
@tejaswibhargava8745
@tejaswibhargava8745 4 жыл бұрын
PLZZZ HELP ME WITH THE DOUBT!! We can use doGet() instead of using service() right?? if yes then how is using service() different from using doGet()
@blaxminarayanpatra7311
@blaxminarayanpatra7311 6 жыл бұрын
sir i got a exception like com.telusko.AddServlet cannot be cast to javax.servlet.Servlet
@premlatakumari91
@premlatakumari91 Жыл бұрын
If HttpServlet is an inteface then why we are extending it we should impliment it but rater than using impliment key we are using extends keyword reason behind it?
@sathishkumarr7106
@sathishkumarr7106 4 жыл бұрын
Thank u brother
@_alex_-qx3lv
@_alex_-qx3lv 2 жыл бұрын
hi.. Navin sir.. thanks a lot for your wonderful videos. I have been following you quite a lot. But I do have some problems in mycode, just like you, I used the PrintWriter object to print the result in the browser, but for some reason, it is not printing out anything on the browser. However, it prints in the console. It didn't work even after I used the flush method. So, please help me out figure the mistakes, if i did any. Thanks and looking forward to hearing from you soon.
@adityadolas623
@adityadolas623 5 жыл бұрын
nice video sir.
@rahulgoti3864
@rahulgoti3864 6 жыл бұрын
Thank You
@aquibshaikh8611
@aquibshaikh8611 3 жыл бұрын
It says unable to resolve javax.servlet. Also while trying to add external jar the button is greyed out. This is very frustrating
@dadasajad8741
@dadasajad8741 4 жыл бұрын
thank you sir
#6 Servlet and JSP Tutorial | Get and Post
6:44
Telusko
Рет қаралды 292 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 177 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 171 МЛН
Yaml Tutorial | Learn YAML in 18 mins
18:05
TechWorld with Nana
Рет қаралды 620 М.
What is Dependency Injection? | Why | Spring
8:17
Telusko
Рет қаралды 691 М.
URL shortener system design | tinyurl system design | bitly system design
34:39
Tech Dummies Narendra L
Рет қаралды 457 М.
Introduction to Servlets
6:50
Telusko
Рет қаралды 1,2 МЛН
Spring | Autowire | Dependency Injection | Spring Boot
18:23
Telusko
Рет қаралды 580 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 197 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 16 МЛН
Самые крутые школьные гаджеты
0:49
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 700 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 6 МЛН
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 84 М.
Сколько реально стоит ПК Величайшего?
0:37