i'm using tomcat 8.5 and i got an hhtp error 405 when i submit my two int it says " post method is not supported by this url" but i'm using get method. please help me.
Type : Status Report Message : The requested resource [/FoodMart/AddServlet] is not available Description : The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Sir, can you please tell me what's getting wrong here; In html file after submitting 2 numbers; rather than showing output in console its showing above error.
Great explanation, but please slow down just a little bit. At first I though I got you on 1.25 speed 🤣🤣 But on the other hand... I don't need to put you on speed 😅 Anyway... Thank you!
When you are calling the SqServlet, and when it's printing, "result is 64", the URL of that page remains as localhost:8080/DemoApp/add?num1=6&num2=2. Shouldn't it be DemoApp/sq since it's from that Servlet?
I think since we are using request dispatcher In the AddServlet we could have directly said request.getAttribute("num1") in sqServlet since requestdispacther doesn't create a new request object it uses the same request object
I use post method in the first servlet and i notice the the url is add. So let's say that, servlet 1 call servlet 2, the servlet 2 send back the resp to servlet 1 and servlet 1 send the result on the browser???
Piyush Agarwal Hi Piyush, Java and JavaScript both are different web technology. Java is used for Server Side technology, which processed on big servers to handle millions of users across worldwide. JavaScript is client side technology, which runs in your machine browser. Both technologies serves basic purpose of web. JSP is one of Java EE technology to develop enterprise application. Whereas with advancement of JavaScript, specially introduction of Node, Java Script can also be used to develop server side code using serverless technology. It is another fact that JavaScript has name ECMA Script, due to encash popularity of Java, it is named JavaScript. Hope this reply sufficient for your question.
When we fetch an object of RequestDispatcher interface , using the method getRequestDispatcher(string), how does it work internally? Like RequestDispatcher is an interface(which cannot be instantiated ) , so how does this method create its object?
ok but how to just intercept res object from SqServlet if you just dedicated this servlet to computation and just return the square number in the AddServlet ?
when i m passing the value using post method isnt not working while its working with get method why is so for this example above since both the method passes the value
sir what if 1) i tried to print sum(k) on AddServlet and square(of k) on SqServlet 2)why we have to decleare req,and res on SqServlet page in doGet() methord
Hello sir..I am facing problem in executing this code servlet into another servlet that is i am not getting result as ""Hello to sq"" but getting previous result of addition??please help...
Pavan Rai Let him finish these servlets one .. He is uploading Java core, servlets at same time. I am also waiting for spring but let us first learn this one.
SIR,REQUESTDISPATCHER IS NOT WORKING IN MY ECLIPSE OR SERVER , WHENEVER I RUN IT ON THE SERVER (TOMCAT 8.5) IT SHOW A HUGE ERROR AND TELLING STACK IS OVERFLOW, PLEASE HELP
Check your spellings too. often time i write deGet instead of doGet. Or the Class names... and make sure you are writing the same the class name in your web.xml...
In href="cart?uid=u.getId()/bid=b.getBId()" can we change this to href="cart" and can we use session to handle the userid and bookid Can you post a video of how to use session for a list of books or anyother items
Bedankt
almost rs 500 omg
Spectacular sir. The confidence is increasing day by day by seeing your tutorials. No words....huge respect from AP.
I enjoyed it a lot after watching the theory of that rather than watching before theory
The greatest video that I ever seen before comparing with others
very conceptual teaching,thanks a lot sir.....its really good that you are moving forward with basics
i'm using tomcat 8.5 and i got an hhtp error 405 when i submit my two int it says " post method is not supported by this url" but i'm using get method. please help me.
Thanks!
tons of tutorials out there, and i claim, this was the best
Type : Status Report
Message : The requested resource [/FoodMart/AddServlet] is not available
Description : The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Sir, can you please tell me what's getting wrong here; In html file after submitting 2 numbers; rather than showing output in console its showing above error.
You are the best teacher and best video legend sir..
Great Servlet tutorials so far, keep going, it's really helpful. Greetings!
Yes navin, we are enjoying the video
Great explanation, but please slow down just a little bit. At first I though I got you on 1.25 speed 🤣🤣 But on the other hand... I don't need to put you on speed 😅 Anyway... Thank you!
best channel for programming concepts
When you are calling the SqServlet, and when it's printing, "result is 64", the URL of that page remains as localhost:8080/DemoApp/add?num1=6&num2=2. Shouldn't it be DemoApp/sq since it's from that Servlet?
I think since we are using request dispatcher In the AddServlet we could have directly said request.getAttribute("num1") in sqServlet since requestdispacther doesn't create a new request object it uses the same request object
req.setAttribute() and req.getAttribute() methods belong to which type of session manangement
Easy to understand. Good work. Very helpful !!!
service() and doGet() doPost() method are public or Protected????
I use post method in the first servlet and i notice the the url is add. So let's say that, servlet 1 call servlet 2, the servlet 2 send back the resp to servlet 1 and servlet 1 send the result on the browser???
Http status 500 - Internal sever error is being generated
Pls respond
I'm really enjoying your videos! 😁
Hello sir.
I wanted to ask whether javascript is better than servlet jsp for creating websites?
Please do reply.
Piyush Agarwal
Hi Piyush,
Java and JavaScript both are different web technology. Java is used for Server Side technology, which processed on big servers to handle millions of users across worldwide. JavaScript is client side technology, which runs in your machine browser. Both technologies serves basic purpose of web.
JSP is one of Java EE technology to develop enterprise application. Whereas with advancement of JavaScript, specially introduction of Node, Java Script can also be used to develop server side code using serverless technology.
It is another fact that JavaScript has name ECMA Script, due to encash popularity of Java, it is named JavaScript.
Hope this reply sufficient for your question.
Awesome teaching and very helpful videos
Best Java channel on youtube!
@Telusko Learnings How to call multiple servlets from a single servlet? Which servlet is responsible for creating res object then?
When we fetch an object of RequestDispatcher interface , using the method getRequestDispatcher(string), how does it work internally?
Like RequestDispatcher is an interface(which cannot be instantiated ) , so how does this method create its object?
ok but how to just intercept res object from SqServlet if you just dedicated this servlet to computation and just return the square number in the AddServlet ?
when i m passing the value using post method isnt not working while its working with get method why is so for this example above since both the method passes the value
In that some kind of data binding?
i am getting error in xml file i.e
how to resolve this??
sir what if
1) i tried to print sum(k) on AddServlet and square(of k) on SqServlet
2)why we have to decleare req,and res on SqServlet page in doGet() methord
It's shows error when I use doPost() and method=post in html file why don't we use use these?
At my end, I have to specify the argument for function getRequestDispatcher as "/sq" instead of "sq". Not sure why.
its working like a directory that is the main reason
Casting an object to int value doesn't work. Somebody knows why?
@Артем Воробкин thank you!
Each time I run the code I get 500 error, I do random changes it works. I don't know what mistake I do?
My server is not finding it showing sqserver not found what to do??
Sir, plz complete your core Java series also,as soon as possible.we r waiting, thanks a lot sir.
ASHISH SHARMA he already has published one core java series refer that
Hello sir,your all videos are nice,sir can you plz make video on core java project ? Step by step ,so it is helpful sir ,for getting place also
Thank you so much sir.. For this Explanation now I understand bcz of your tutorial.. 🤟👌🙏
can we pass value from class to html page and read or print it
Really stupendous content..!! Thanks 3000 times.
Sir i hv encountered an error which is showing build path error, i have tried everything but it is not resolve plse help
sir how to call the value of k=i+j in the SqServlet
Hello sir..I am facing problem in executing this code servlet into another servlet that is i am not getting result as ""Hello to sq"" but getting previous result of addition??please help...
What is the issue?
@@SEVERANCE850 issue is that i have made a simple addservlet program as told by sir but it does not have any error but it is not also working
@@aastha4708 There is something which you would be missing
@@SEVERANCE850 yes that I cannot figure out..i have checked all my code and all my installed s/w setting but still couldnt find
I used doPost instead of doGet why am I getting error then
waoo i spend more than 3 days of an error in servlet, and i find you, I solved, nobody say me than dispacher is very important...
can u do a video on how to pass values from javascript to servlet
Thank you a lot sir.. This is like a God gift..
Best Mentor ever seen
thank you very very much .....for such a valuealble content......keep up.....thank you...
i'm getting the error named
Error instantiating servlet class
i am getting error in xml file i.e
Brother iam requesting you to do more videos on servlet, JSP'S and spring and springboot
not getting sqservlet output only getting addservlet output how to solve.....
after restarting also not getting output.....what to do
sometimes server is starting perfectly but output is not displaying in any browser...what might be the problem
The savior 🙌
Thanks sir.Really helpful video
Please start series for SPRING as soon as possible.
Pavan Rai Let him finish these servlets one .. He is uploading Java core, servlets at same time. I am also waiting for spring but let us first learn this one.
SIR,REQUESTDISPATCHER IS NOT WORKING IN MY ECLIPSE OR SERVER , WHENEVER I RUN IT ON THE SERVER (TOMCAT 8.5)
IT SHOW A HUGE ERROR AND TELLING STACK IS OVERFLOW, PLEASE HELP
Kishor Kumar Singh did fix the issue?
You must not have extended the sqervlet with HttpServlet
Same error. Any solution
Sir ur content size is too small in videos it's difficult to see 👀 them clearly pls Make it bigger
That's why i'm using 720p
why servlet doesn’t hv main method?
Best question so far
woo hoo again a new video.
Sir If you don't mind to give us to Introduction lecture about JAVAFX
By the way, youre the best
I got very frequent errors especially error 405,500,402 though they got resolved but wasted so much of my time
Great work.
Thanks navin....already subscribed(y)
Nicely explained
love you 3000 sir :) thank you for such amazing content I have learned more from you rather than from College
What about forward and include.... Explain... Then... Give some time mind to it....
Please be slow for us(beginners)
javax.servlet.ServletRequest what these means
Screen is blurred
Sir how to solve
Http Status 500- Internal Server Error
This error is came whenever there is error in your XML file...check your servlet and servlet_maping tag
Check your spellings too. often time i write deGet instead of doGet. Or the Class names... and make sure you are writing the same the class name in your web.xml...
@@YorkwestAdvocate thanks
@@satendra6200 thanks
may i use constructor in servlets?
Because iam seeking to place in good reputed company with your stuff
I want to learn adv java with springboot very effectively
This is what I get
- The type RequestDispatcher is deprecated
Thanks sir
Thank u so much 🚨
In href="cart?uid=u.getId()/bid=b.getBId()" can we change this to href="cart" and can we use session to handle the userid and bookid
Can you post a video of how to use session for a list of books or anyother items
u are best
helpful .. ! thank you
loved it
Plz upload more videos sir
it seems like you are doing revision for your own. you go too fast
play the video in slow motion(there is speed control in video, i think u know right)
Your teaching style is very very fast..its not for beginners ..try to teach slowly slowly . This style makes very confuse
Damn true
Sir, I am facing error 405 method not allowed
Hello sir..My code is not working..I am not getting result for hello to sq...please answer...Can anyone help??