JSPs and Servlets Tutorial 05 - The POST Method and Passing Parameters

  Рет қаралды 298,186

Java Brains

Java Brains

Күн бұрын

Пікірлер: 67
@potatopotato4676
@potatopotato4676 Жыл бұрын
Watching these tutorials 12 years after launch, still they feel really high quality. It's like buying a quality product and it works a lot longer than economical ones. Thanks!
@trocandobytes
@trocandobytes 28 күн бұрын
Agree!!
@LiveLoveLaughEveryday
@LiveLoveLaughEveryday 8 жыл бұрын
Every tutorial of yours is excellent. Many of my confusions are resolved after watching your tutorials. I just hope you keep producing the tutorials. Your ability of making complex things simple is just amazing. It's a unique talent. Thanks a lot!!!
@kart0624
@kart0624 12 жыл бұрын
Thanks for doing this man. I know it takes time and effort, and passing this knowledge on for beginners is really great. Thanks again.
@photonpoint7086
@photonpoint7086 9 жыл бұрын
At the end I'm able to understand Java Web with your generous efforts. Thank you so much. I hope so we will able to watch your JSF Tutorials.
@arkanglegeibriel
@arkanglegeibriel 9 жыл бұрын
As someone new to this, this is my ONLY complaint. I'm still learning the difference between xml and html. His eclipse theme (default) displays the color schemes the same on both. EVEN THOUGH HE HAD CLEARLY MADE AN HTML FILE, I had the xml bias in my head. This isn't a problem with the presenter as he's done a magnificent job. But in case this confuses anyone else I thought I'd post this. Good luck to anyone here to learn!
@DeanGl
@DeanGl 12 жыл бұрын
I, for one did. But It's so long ago that I'm currently watching these tutorials to refresh my memory. I'm not in the US though.
@MukulTripathi
@MukulTripathi 13 жыл бұрын
I found this video as the most important video of the tutorial series.
@gaukaugaukau
@gaukaugaukau 13 жыл бұрын
thanx a lot koushik sir:)...ur teaching skills are outstanding:)...now u r one of my best teachers :)...thanx a lot:)
@vishwajeetsingh3292
@vishwajeetsingh3292 6 жыл бұрын
brother you are doing excellent work!! each and every concept are become very clear by practically helps a lot keep updating brother for different courses
@theLenardGreen
@theLenardGreen 12 жыл бұрын
Was looking for a long tine a good tutorial on Java Servlets and JSP's, Looks like i hava found one now, Thanks a lot, Its great!
@Omniman2
@Omniman2 9 жыл бұрын
Really great tutorial. I dont have to surf the web too much from now.
@halflifethenna
@halflifethenna 11 жыл бұрын
simply amazing! thanks for your time for sharing this tutorial.
@Heinekeem
@Heinekeem 11 жыл бұрын
Great tutorial man. Keep them comming!
5 жыл бұрын
Excellent explanation....
@brvdley6442
@brvdley6442 3 жыл бұрын
Your disk was almost full back then man, hope you got more space by now
12 жыл бұрын
It is clear. Thanks for sharing!
@zPathwalker
@zPathwalker 11 жыл бұрын
Such an awesome tutorial!
@chiragjain9490
@chiragjain9490 8 жыл бұрын
I m not getting that how an html file is called from servlet.....bcoz in the main method there is not a single line which is indiacting towards html file
@sfathimasajini
@sfathimasajini 11 жыл бұрын
really very good and it is very usefull.....
@maravindh
@maravindh 12 жыл бұрын
You are awesome man..
@LeCoffeeMonster
@LeCoffeeMonster 6 жыл бұрын
Guys to address the problem, check that your is the same as in web.xml /xmlServletpath xmlServletpath must be the same spelling in both, i got 404 because spell it wrongly Hope this works
@Dragosknight
@Dragosknight 9 жыл бұрын
Kousik it's throwing 405 error what is the reason. It says that url not supported
@vinaymolige7998
@vinaymolige7998 4 жыл бұрын
excuse me sir i am getting HTTP method POST is not supported by this URL please tell me how to fix it
@Lasetacular
@Lasetacular 12 жыл бұрын
Nope, I'm watching this video at my first job. Surely you'll be more marketable to know this stuff, but I'm not sure it's expected as it is mostly an enterprise practice.
@IvoShurbanovski
@IvoShurbanovski 11 жыл бұрын
keep on working. you are really great teacher. let me now ask you a question. in the simpleform.html when i click submit query I get an error 404. when I run the xmlservlet independently it runs without a problem. solution?
@LordCarringtan
@LordCarringtan 12 жыл бұрын
Did anyone here learn this in college (undergrad)? I'm currently in college and we don't learn any Java Web Information so I am teaching it to myself to be ready for the job market. But I'm curious did you learn this in your undergrad studies?
@poojarevankar107
@poojarevankar107 8 жыл бұрын
Hi , Whenever i hit Submit Query button, my url will be localhost:8080/xmlServletPath instead of localhost:8080/SimpleServletProject/xmlServletPath..i.e Project name goes missing.so i get Webpage not found page.... when i manually type project name it works fine.. FYI..I have put url pattern in form action.. Please suggest..
@gogetadexter
@gogetadexter 8 жыл бұрын
+pooja Revankar Im getting the same problem. I have used annotations for the URL pattern. Did you find any fix?
@amitgiri1790
@amitgiri1790 8 жыл бұрын
I think you have used action= "/xmlServletPath" in form field. Remove that "/" . user action ="xmlServletPath". I was also getting the same problem. I fixed it by removing "/"
@Akashpatil-pf6hm
@Akashpatil-pf6hm 7 жыл бұрын
yup it worked thanks
@nupurjaiswal957
@nupurjaiswal957 6 жыл бұрын
Thanks Amit. I solved the same issue using your solution
@mikesca1980
@mikesca1980 13 жыл бұрын
I found my problem , but i do not know the fix. It seems like once i ran a html files, it stays the same and do not take the changes made later on. I had to recreate a new file by making sure everything is correct before running it on server. I wonder where is files cached
@DaBBoSaH
@DaBBoSaH 10 жыл бұрын
fanx greattttttt
@mikesca1980
@mikesca1980 13 жыл бұрын
One addition : When i run the SimpleForm.html in eclipse and try to view source code. the method="post" disapeared? although i can see it on the editor.
@ChandanKumar-rl6df
@ChandanKumar-rl6df 6 жыл бұрын
hey Kousik, After clicking submit button it is not transferring to xmlServlet page and showing 404 error. I have made same code as u have done.
@FarahNazifa
@FarahNazifa 8 жыл бұрын
So far so good. But this doesn't work exactly the way you showed. The problem is - after I create a form with two inputs. That works. After I click on the button, the url changes to localhost:8080/xmlServletPath?userName=Farah and HTTP Status 404 - /xmlServletPath on the screen! I am looking forward for an answer how to resolve this problem. Thank you. :)
@abbykr999
@abbykr999 8 жыл бұрын
Be sure to set i.e. no ''/'' character, which is obviously present in "url-pattern" tag in web.xml file... and also when you edit your html file, saving and re executing it is not enough. The changes don't take place somehow, even restarting tomcat doesn't help,weird huh!. You need to refresh the eclipse browser. Hope it helps...
@TheMazem
@TheMazem 13 жыл бұрын
HI koushik,Am very new to Java EE.I have a small issue.i,e: When the java source file is changed, tomcat is not reloading the context automatically, it is reloading only when i build the source file.can you please let me know why the reloading is not happening automatically when the resource file is changed in my case.
@rsscssr1
@rsscssr1 10 жыл бұрын
hi, why don't you close writer of response object? is there special sense or it's just because of tutorial?
@mikesca1980
@mikesca1980 13 жыл бұрын
I can't get the servlet doPost work. I have method="post" on the html form and i have implemented the doPost method on the servlet. It doesn't call the doPost method. Anyidea? I saw you had the same problem before the refresh but i have refresh my buildin browser
@2011jiqbal
@2011jiqbal 9 жыл бұрын
IF UR HTML PAGE is not loading well.. hit the refresh button inside the eclipse internet browser
@ivarjar
@ivarjar 9 жыл бұрын
I dont get it he is using only using Out.println() function, but no HTML tags are present, then how does the browser render the ouput. If i remember correctly he said outputs should be inside HTML tags. corrrect me if i am wrong.
@llitfkitfk
@llitfkitfk 11 жыл бұрын
I use SimpleForm.html not working when I use doGet() method But after I change the name SimpleForm.html to others like form.html or simple.html...., it is working! Why?
@saivatsav8377
@saivatsav8377 5 жыл бұрын
Hi Sir after submitting the simpleform.html i am getting an error which is "The origin server did not find a current representation for the target resource or is not willing to disclose that one exists". Can you please help me with that..Thanks in advance.
@sasmalpayal
@sasmalpayal 8 жыл бұрын
I would like to know that what is the uses of the setContenttype method.
@kacperopyrcha6056
@kacperopyrcha6056 8 жыл бұрын
I was also confused about that. I find answer on stackoverlfow: stackoverflow.com/questions/14291027/what-is-the-use-of-response-setcontenttypetext-html-in-servlet hope this explain you everything :)
@shaik119
@shaik119 5 жыл бұрын
I am still getting 404 http status not found. No problem with server. Localhost 8080 loads apache home page.
@muhammedrefaat8661
@muhammedrefaat8661 11 жыл бұрын
i'm just learn a little object oriented concepts in C# (from beginneng to inheritance) ... and i didn't learn any java that's made me hate my college coz they don't focus on one major but some network some DB some embedded systems some computer vision ... i hate it
@FACE90966
@FACE90966 10 жыл бұрын
I have a problem. If i click on the project then choose run on server, i get Null in jsp getAttribute. But when i click on the servlet then run on server i dont get Null attribute. My question is why? I hope you understand my problem.
@thevagabond85yt
@thevagabond85yt 10 жыл бұрын
post it on stackoverflow.com/
@maddy0891
@maddy0891 9 жыл бұрын
+Bibhu Prasad yes i jus removed the space while typing ?username=yourname
@keshubmathur6972
@keshubmathur6972 8 жыл бұрын
I am getting a file download - security warning . Can anyone tell me why?
@DarkMassFabrikator
@DarkMassFabrikator 12 жыл бұрын
ty ty ty
@apbassboost
@apbassboost 10 жыл бұрын
private void ? () throws what?
@moezrebai7462
@moezrebai7462 10 жыл бұрын
thanks
@pranavsrikartata3350
@pranavsrikartata3350 9 жыл бұрын
this is working for me if I give URL pattern as /xmlservlet but not working if I give it as /xmlservletpath...i couldn't understand why...could anyone please explain this to me
@ivarjar
@ivarjar 9 жыл бұрын
In the previous tutorials i think he has mapped the url pattern to /xmlservletpath instead of /xmlservlet(default). He has done it in the web.xml file. The default mapping is the servlet class name which is in your case.
@akshivepandey4163
@akshivepandey4163 6 жыл бұрын
i've done exact same thing but, getParameter is returning null value why ? can anybody help ?
@reloaderify
@reloaderify 5 жыл бұрын
Check if the "userName" field in html is the same as in 'request.getParameter("userName")'
@rhythmnarang6455
@rhythmnarang6455 7 жыл бұрын
its mapping on the url localhost:8081/SimpleServletProject/SimpleServletPath?userName=m .......instead of SimpleServletPath it should be xmlServletPath. coz i have given my form action as
@madhurapradhan4439
@madhurapradhan4439 9 жыл бұрын
I get null value in doGet Method instead of the username i am typing in url....i did every step as told by you...still
@bibhuprasad4050
@bibhuprasad4050 9 жыл бұрын
Madhura Pradhan Did you get the output?. Even I am facing the same problem
@madhurapradhan4439
@madhurapradhan4439 9 жыл бұрын
Bibhu Prasad yes i just removed space while typing ?username=yourname in url
@bibhuprasad4050
@bibhuprasad4050 9 жыл бұрын
Madhura Pradhan I got the output also. I didn't refresh the browser.
@gilbertslam
@gilbertslam 9 жыл бұрын
+Madhura Pradhan in the HTML form tag, do you have the input name set as username?
@TomasProchazkaCZE
@TomasProchazkaCZE 12 жыл бұрын
Dude you are getting more and more silent in every video :-D Just keep continue with these tuts and i will send you some money for some new mic :-D
JSPs and Servlets Tutorial 06 - Passing More Parameters
14:56
Java Brains
Рет қаралды 239 М.
JSPs and Servlets Tutorial 08 - Request, Session and Context Part 1
15:00
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 84 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,6 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 10 МЛН
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
JSPs and Servlets Tutorial 16 Part 1- Writing an MVC Application
14:35
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,5 МЛН
What is DATABASE SHARDING?
8:56
Gaurav Sen
Рет қаралды 931 М.
JSPs and Servlets Tutorial 07 - Understanding GET and POST
14:48
Java Brains
Рет қаралды 213 М.
JSPs and Servlets Tutorial 02 - First Servlet Part 1
13:55
Java Brains
Рет қаралды 654 М.
Difference Between REST API vs Web API vs SOAP API Explained
7:24
Learn with Whiteboard
Рет қаралды 216 М.
JSPs and Servlets Tutorial 14 - Using jspInit and InitParams
14:59
Java Brains
Рет қаралды 126 М.
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19